To run this project, you'll need:
- A laptop or computer.
- Node.js and NPM.
- A MySQL database.
git clone https://github.com/your-username/ecommerce-cart-management.git
cd ecommerce-cart-management
npm install
- Create a MySQL database and take note of your connection configurations.
- Rename .env.example to .env and fill in your database details:
DB_HOST=your_host
DB_USER=your_user
DB_PASSWORD=your_password
DB_DATABASE=your_database_name
JWT_TOKEN_SECRET=your_secret_key
- Use the provided SQL scripts to set up the required tables in your database.
- Ensure to adjust other configurations in the .env or other config files as necessary, such as JWT secrets.
node app.js
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJBZG1pblBsb3QiLCJyb2xlIjoiYWRtaW4ifQ.yUeYj4k6HOw5sXr0ztDA14URkr7S37XfcIEXOXgT2E8
The application should now be running on 'http://localhost:3000'.
'/AddToCart' - Add Item to users cart.
'/Checkout' - Confirms the order and revert changes.
'/getAllOrders' - Shows total transaction performed.
'/forgotPassword' - Change Password For Existing User.
- Wish to contribute? Feel free to open a pull request. For significant changes, kindly open an issue first to deliberate what you'd prefer to change.
- This project is open-source and available under the MIT License.