An ecommerce store built with MERN stack and utilizes third party API. This ecommerce store enable 2 different flows:
- User browse the products, transations history and cart checkout
- Admin manage and control entire store components.
Site Demo: https://ecshop-ecommerce.herokuapp.com/
$ git clone https://github.com/oreoseenoevil/mern-sample-ecommerce.git
$ cd mern-sample-ecommerce
$ copy env.example .env
* MONGO_URI & ACCESS_TOKEN_SECRET & REFRESH_TOKEN_SECRET => configuration
* PORT & BASE_SERVER_URL & BASE_API_URL & BASE_CLIENT_URL
* CLOUD_NAME & CLOUD_API_KEY & CLOUD_API_SECRET => cloudinary configuration
The server-side run on http://localhost:5000/ also the client-side also run on http://localhost:5000/
Some basic Git commands are:
$ npm install
$ npm start
- Add a
.vscode
directory - Create a file
settings.json
inside.vscode
- Install Prettier - Code formatter in VSCode
- Add the following snippet:
{
"editor.formatOnSave": true,
"prettier.singleQuote": true,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"files.eol": "\n",
"prettier.jsxSingleQuote": true
// Enable this once you're on the client folder/react
// "emmet.includeLanguages": {
// "javascript": "javascriptreact"
// }
}