Shoponn
Deployment site
https://shoponn.herokuapp.com/
Required environment variables
- NODE_ENVIRONMENT=[production or development]
- SECRET_KEY=[secretkey]
- DATABASE_URL=[mongodb://localhost:27017/test]
- BRAINTREE_PUBLIC_KEY=[************]
- BRAINTREE_PRIVATE_KEY=[***********]
- BRAINTREE_MERCHANT_ID=[***********]
At first install all the dependencies
- inside root package, run
- "npm install" ***[this will install all the dependencies for backend]***
- move to cliend package, "cd client/", then run
- "npm install" ***[this will install all the dependencies for react frontend]***
To start the project in development mode
- inside root package, run
- "npm start dev"
- move to cliend package, "cd client/", then run
- "npm start"
To start the project in production mode
- make sure that NODE_ENVIRONMENT is set to production in .env file
- inside root package, run
- "npm run prod"
- project will be available to run at localhost
Log in or sign up for Devpost to join the conversation.