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.git
Or 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
[email protected]
FROM_NAME=doryTeam
FACEBOOK_ID=00000000
FACEBOOK_SECRET=000000000
GOOGLE_ID=000000000
GOOGLE_SECRET=000000000
NODE_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_ID
andFACEBOOK_SECRET
: Are used for signing up with facebook.GOOGLE_ID
andGOOGLE_SECRET
: Are used for signing up with google.SMTP_HOST
: The provider for sending emailsSMTP_EMAIL
andSMTP_PASSWORD
: The email and password key for sending emails through mailtrap.io
1. Install NPM packages ⬇️
npm install
2. Run! 🏃♂️
npm start
Any 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.