- Name: Nazmus Sakib
- Email: nazmus.x.sakib@abo.fi
All the mandatory and optional requirements have been implemented.
- Project folder
- Backend in Django rest framework
- Frontend in React
- Automatic DB population
- Browse items
- Create account
- Login
- Create new product
- Add to cart
- Search by title
- Remove from cart
- Pay for cart
- Routing in react
- Change password
- View my items inventory
- Edit product
- Web pages look nice and easy to use on regular desktop screens
Make sure you have the following installed on your system:
- Python 3.12.2
- Node v20.11.1
git clone https://github.com/AA-IT-WebTechCourse/webshopproject2024-sakib7.git
cd webshopproject2024-sakib7python -m venv venv
venv\Scripts\activate.batpip install -r requirements.txtpython manage.py migrate python manage.py runservercd frontend
npm install
npm run devNote: Run the frontend on a new terminal window. You can cd into the project folder and then run.
- Go to
http://localhost:3000/to see the webshop. - Initially no products will be there, click 'populate db' button to populate data.
- If you run populate_db multiple times, you will have to logout to clear the local storage. Otherwise, you may get 'Invalid token' error if you were logged in before.
- Notification messages are always shown in bottom-right corner.
Click populate db button to populate. .
Type in the search bar to search products by title.
My items/Inventory page. It also has the 'Create new product' button.
Shopping cart page. Error notification is shown in red text in each product.
For successful payment, user will be redirected to the purchased tab of my items page
Feel free to send me an email if you face any issue to run the project