A full-stack e-commerce application.
- Node.js (v14.x or higher)
- npm (comes with Node.js)
- MongoDB (cloud URI)
-
Install Dependencies:
npm install
-
Seed Initial Data (Optional - for first-time setup): This creates a default admin user (
admin@shop.com/password) and sample products.npm run seed
-
Run the Application:
npm run dev
This will start the server (usually on
http://localhost:5001) with Nodemon for auto-restarts during development. For production, you can usenpm start. -
Access in Browser: Open your web browser and go to
http://localhost:5001.