Skip to content

AA-IT-WebTechCourse/webshopproject2023-RashedulAlam

Repository files navigation

WebShop

Author

Implemented Features

This project has all the implementation of mandatory and optional requirements.

Core Features:

  • User authentication (login, registration)
  • Product listing and filtering
  • Shopping cart functionality
  • Payment processing
  • Inventory

Optional Requirements Implemented:

  • RQ-6: Search
  • RQ-11: Remove from the cart
  • RQ-12: Pay
  • RQ-13: Routing
  • RQ-14: Edit Account
  • RQ-15: Display inventory
  • RQ-16: Edit item
  • Non Functional: The web pages should look nice and easy to use on regular desktop screens

How to Run the Project

Prerequisites

Make sure you have the following installed on your system(these version has been used while local development however older version may work):

  • Python 3.12.0 or later
  • Node v20.10.0 or later

Step-by-Step Instructions

1. Clone the Repository

git clone https://github.com/AA-IT-WebTechCourse/webshopproject2023-RashedulAlam
cd webshopproject2023-RashedulAlam

2. Set up a Virtual Environment

python -m venv env
source env/Scripts/activate

3. Install Dependencies

pip install -r requirements.txt

4. Apply Migrations

python manage.py migrate

5. Run the Development Backend Server

python manage.py runserver

Or

 python manage.py runserver 127.0.0.1:8000 

Or

 python manage.py runserver 127.0.0.1:8000 --noreload

note: Make sure that backend server runs 8000 port and port is available locally. Incase the server is run on different port then .env file on frontend directory should be updated accordingly so that frontend can connect proper backend.

6. Run the Development frontend server or locally in production mode

Production Mode (Faster Browsing)

cd frontend
npm install
# npm run build 
# The command should re-generate the build files from your machine
npm run start

Dev Mode (Slow Browsing)

cd frontend
npm install
npm run dev

note: sometimes during running application on development mode requires browser refresh only for the first time incase any error due to bug on nextjs or webpack however on production running there were no error. It was observed sporadically.

7. Validate the successful running servers

If both backend and frontend server runs properly then start browsing the application. There is optional to populate the database. Make sure to popuate to start the testing.

Samples of Webshop

Here is a series of images to demonstrate:

Image 1 Description Image 2 Description Image 3 Description Image 4 Description Image 5 Description Image 6 Description Image 7 Description Image 8 Description Image 9 Description

Conclusion

Incase of any issue while running and testing the application please reach out to me using the given email

About

webshopproject2023-RashedulAlam created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published