This is a fully operational online store where you can buy wines, review and read about wines.
- Browse wines with details on taste, color, and origin.
- Find wines using filters and search function.
- Mark preferred wines as favorites for quick access.
- Rate and review wines
- Add wines to the cart
- Add and edit wines
- Assign roles
- Monitor and track orders
- npm
- python 3.10
-
Setup Django:
cd server python3.10 -m venv venv
source venv/bin/activate pip install -r requirements.txt
-
Perform migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Load data sets:
python manage.py loaddata countries.json python manage.py loaddata tastes.json python manage.py loaddata colors.json python manage.py loaddata wines.json
-
Run the server:
python manage.py runserver
-
Install dependencies:
cd client npm install
-
Run the frontend:
npm run dev
Visit http://localhost:8000/admin, log in as a superuser, and navigate to the "Users" section. Select your superuser and set their role to "Manager" at the bottom. Optionally, you can create a regular user during this process.
- Open a web browser and go to http://localhost:5173 to see the frontend.
- The Django admin panel will be available at http://localhost:8000/admin.