Webshop Project
Author:
Name: Sofie Arnkil 2501988
Email: sofie.arnkil@abo.fi
Implemented requirements:
Mandatory requirements:
- Project folder
- Backend using Django and REST API
- Frontend using React
- Automatic database population
- Browse items
- Create account
- Login/logout
- Add item
- Add to cart
Optional requirements:
- Search
- Remove from cart
- Pay
- Routing
- Edit account
- Display inventory
- Edit item
How to run the project:
Backend:
Open terminal in the backend folder: bash: cd backend
Install dependencies with: pip install -r requirements.txt
Run migrations: py manage.py migrate
Start backend server: py manage.py runserver
Backend runs on http://localhost:8000
Frontend:
Open another terminal in the frontend folder: bash: cd frontend
Install dependencies with: npm install
Start frontend: npm run dev
Populate the database:
Open: http://localhost:8000
Press the populate database button to generate testusers and items.
Test accounts:
Username: testuser1
Password: pass1
Username: testuser2
Password: pass2
Username: testuser3
Password: pass3
Username: testuser4
Password: pass4
Username: testuser5
Password: pass5
Username: testuser6
Password: pass6