This project is a web application for an online store developed with Node.js. It allows administrators to add products and users to create accounts to access the store and add products to their cart. The project was collaboratively developed using the Live Share extension of Visual Studio Code.
- Davide Flamini
- Nicolas Cuellar
- Daron Mercado
- Miguel Angel Martinez
- Andres Felipe Cabezas
- Login page with a predefined admin user.
- Ability to add products (admin only).
- User account creation for accessing the store.
- Store page displaying products with name, price, description, and image.
- Add to cart functionality.
- Node.js
- npm (Node Package Manager)
-
Download and install Node.js from nodejs.org. The npm package manager is included with Node.js.
-
Verify the installation by running the following commands in your terminal:
node -v npm -v
You should see the versions of Node.js and npm displayed.
-
Clone the repository to your local machine:
https://github.com/davidone007/VirtualShop.git cd VirtualShop
-
Install the necessary dependencies:
npm install express body-parser npm install cors
No additional configuration is required as the project uses JavaScript files for data storage instead of a database.
To start the server, navigate to the root directory and execute the following command:
node src/server/server.js
The server will be running at http://localhost:3000
.
-
Write in your console
start src/client/html/login.html
. -
Log in with the following credentials:
-
Admin User:
- Username: admin
- Password: admin
-
Normal User:
- Username: 123
- Password: 123
-
- Log in as an admin.
- Navigate to the product administration page.
- Add product details, including name, price, description, and image.
- Navigate to the registration page and create a new user account.
- Once registered, log in with the new account.
- Access the store to view available products and add them to the cart.
Thank you for using our online store application!