Ecommerce application written in Node.JS, Express.JS, with MongoDB as database.
Use the package manager yarn or npm to install dependencies.
yarn install || npm install
- In main directory create folder named "config".
- Create two files - dev.env and test.env
- Fill in your environment variables, which are the following:
✳️PORT - port on which your server will be running.
✳️MONGODB_URL - database url.
✳️SENDGRID_API_KEY - Sendgrid API key for sending E-mails.
✳️JWT_SECRET - Web token secret phrase.
With this done, run
yarn dev || npm run dev - to run in development mode
yarn start || npm run start - to run in production mode
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.