API for Dory App
🔗 Live • 🐛 Report Bug or Request Feature • ✨Postman Doc
An API for Dory App , Dory is an Online Medical Booking App It allows the patient to book appointments , search for doctors and labs , chat with Doctors and Request Home consultations or Home tests .
To get a local copy up and running follow these simple example steps.
- Node (Download here!)
1. Fork this repository 🍴
2. Clone your forked repository to your local system 👥
git clone https://github.com/<your-username>/doryapi.gitOr Download and extract the zip file.
You need to make your own config\config.env with the following structure.
NODE_ENV=development
PORT=5000
MONGO_URI=mongodb://localhost:27017/YourCollection
GEOCODER_PROVIDER=mapquest
GEOCODER_API_KEY=0000
FILE_UPLOAD_PATH= ./public/uploads
MAX_FILE_UPLOAD=1000000
JWT_SECRET=0000000
JWT_EXPIRE=30d
JWT_COOKIE_EXPIRE=30
SMTP_HOST=smtp.mailtrap.io
SMTP_PORT=2525
SMTP_EMAIL=000000
SMTP_PASSWORD=0000000
FROM_EMAIL=mohaned@dory.com
FROM_NAME=doryTeam
FACEBOOK_ID=00000000
FACEBOOK_SECRET=000000000
GOOGLE_ID=000000000
GOOGLE_SECRET=000000000NODE_ENV: It should be"production"in order to run the api on production otherwise use"development"PORT: Your api hosting portMONGO_URI: Your database pathEg:
"mongodb://localhost:27017/YourCollection"If you're hosting on your localhost server.JWT_SECRET: Your json web token secret key.JWT_EXPIRE: The period token can last before expiring expressed in seconds or a string describing a time spanEg:
60,"2 days","10h","7d". A numeric value is interpreted as a seconds count. If you use a string be sure you provide the time units (days, hours, etc), otherwise milliseconds unit is used by default ("120"is equal to"120ms").FACEBOOK_IDandFACEBOOK_SECRET: Are used for signing up with facebook.GOOGLE_IDandGOOGLE_SECRET: Are used for signing up with google.SMTP_HOST: The provider for sending emailsSMTP_EMAILandSMTP_PASSWORD: The email and password key for sending emails through mailtrap.io
1. Install NPM packages ⬇️
npm install2. Run! 🏃♂️
npm startAny contributions you make are greatly appreciated.
- Create your Branch (
git checkout -b master/test-branch) - Commit your Changes (
git commit -m 'Add some code') - Push to the Branch (
git push origin master/test-branch) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.