{"repo":"ashraf-kabir/mern-ecommerce","free":true,"listed":false,"github":"https://github.com/ashraf-kabir/mern-ecommerce","clone":"git clone https://github.com/ashraf-kabir/mern-ecommerce.git","description":"MERN Stack ecommerce site","language":"JavaScript","stars":286,"topics":["ecommerce","mern-ecommerce","node-js","react-js","express-js","mongodb-database"],"license":"MIT","category":"ecommerce","readme_excerpt":"mern-ecommerce Frontend- Vite JS (React JS) Backend- Node JS & Express JS Database- MongoDB Installation process 1. #### clone the repo using this command 2. #### install npm packages 1. install backend packages 2. install frontend packages 3. go to the parent folder of mern-ecommerce & create .env for connection, JWT SECRET, BRAINTREE MERCHANT ID, BRAINTREE PUBLIC KEY and BRAINTREE PRIVATE KEY. (ctrl+x to save & nano follow instruction there) ##### sample code for backend .env 4. Frontend config.js ##### sample code for frontend config.js ##### Instructions: 1. for mongodb atlas database creation follow this tutorial- https://www.youtube.com/watch?v=KKyag6t98g8 2. you can use any random string as JWTSECRET 3. if your backend server is on a different port or domain, update the API URL in config.js accordingly 4. #### note: add .env on .gitignore 5. for server deployment use secrets directly 5. deploy this project on your local server by using this command #### note: both backend & frontend server will start at once with the above command. 6. #### Database Structure: (Schema) 1. categories: \\ id, name, createdAt, updatedAt; 2. orders: \\ id, status, products (Array), transaction id, amount, address, user (Object), createdAt, updatedAt 3. products: \\ id, photo (Object), sold, name, description, price, category, shipping, quantity, createdAt, updatedAt 4. users: \\ id, role, history (Array), name, email, salt, hashed password, createdAt, updatedAt App Description: 1. user can view","default_branch":null,"files":null,"tree":[],"storefront":"/r/ashraf-kabir","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ashraf-kabir/mern-ecommerce/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}