This is a simple web application built with Express.js that demonstrates the MVC (Model-View-Controller) architecture in JavaScript. The project simulates a store with features for adding, editing, and deleting products in the admin panel, as well as a shopping cart on the shop page. Instead of using a database, the project uses the fs
module to store data locally JSON file.
-
Admin Panel:
- Add products with details
- Edit existing products
- Delete products
-
Shop Page:
- Display products with details for users to browse
- Add products to the shopping cart
-
Shopping Cart:
- View and manage items in the cart
-
Clone the repository:
git clone https://github.com/SimoSamaa/mvc-express-js.git
-
Install the dependencies:
npm install
-
Run the project:
npm run serve
-
Go to URL in your Browser add:
localhost:2000