Link to API deployed to Heroku https://devshop-be.herokuapp.com/
To get this project up and running locally:
-
Clone this repo
-
Run
npm install
to install all of the required dependencies. -
Install MongoDB Community Edition on you local machine. Instructions can be found here.
-
or use mongo atlas db details by creating one on mongodb then create an instance of mongodb URI
-
Create a
.env
file in the root of the project with the following environment variables:
DB_CONNECTION_TEST="mongodb://localhost/shopping-cart-test"
DB_CONNECTION="mongodb://localhost/shopping-cart"
PORT=4000
JWT_SECRET="<put in your jwt_secret here>"
STRIPE_SECRET=<put your stripe secret key here>
STRIPE_CLIENT_ID=<put your stripe secret client here>
STRIPE_HOLDER=123456789000
To start server locally
npm run server
To apply linting
npm run lint