Ensure that you have the following installed:
-
Clone this repository
git clone https://github.com/clarencecodes/smartpharmacy_api.git
-
Install dependencies
cd smartpharmacy_api npm install
Rename config/config.env.env
to config/config.env
and update the values/settings to your own.
node seeder -d
to destroy all previous datanode seeder -i
to import data
npm run dev
(local, development mode)npm run start
(local, production mode)
- Ensure that you are added as a collaborator to the app in Heroku
git push heroku master
to deploy