- Download the files
- Run npm install to install all dependencies
-
- got to MongoDb official website MongoDB and create a free MongoDB Atlas account.
- And then make sure to create a user in Database Access and add your IP address (in Network access).
- After that go to clusters, click connect select Connect your application, copy the connection string, and make sure to replace username password with your credentials from your user created in the second step.
- finally go in the app.js located in the root folder (line number 22) paste that Connection string to the variable MONGODB_URI as value
-
- Create a Sengrid account at Sendgrid and crate an ApiKey in settings .
- paste that Api Key into auth.js ocated in the controllers folder controllers (line number 11)
-
- create a stripe account atStripe and make sure to add your name at the left corner of the home page
- Copy Api test key from the home page and paste in shop.js located in the controllers folder (line number 7)