styleswap.mp4
This project is a fully functional online marketplace that allows users to browse and purchase clothing items from various categories. The primary aim of this project was to explore the integration of full-stack development, combining a Django Rest Framework backend with a Vue js frontend.
One of the key features of this project is the integration of a payment system, which was achieved using Stripe. This allows for secure and reliable payment processing for buyers and sellers. Additionally, the project includes an example of Dockerization, demonstrating how the application can be deployed using Nginx.
-
User authentication and registration.
-
Product catalog: users can view a catalog of clothing items.
-
Search and filtering: users can search for clothing items by keyword.
-
Users can view their purchase history.
-
Shopping cart.
-
Payment processing.
-
Swagger API.
-
Docker and Nginx.
-
Configuration to deploy on a private serve.
- learning vue js
- use Stripe
The proposed system is a web application that will utilize the Django Rest Framework to create an efficient and secure API for communication with the database. This API will serve as the backbone of the system, allowing it to receive requests from the frontend interface, which will be created using Vue.js and Bulma.
- Create a virtual environment:
python -m venv venv
- Activate virtual environment:
venv\Scripts\activate.bat
- для Windows
source venv/bin/activate
- для Linux и MacOS - Install poetry:
pip install poetry
- Enter the virtual environment:
poetry shell
- Install dependencies:
poetry install
- Installing pre-commit hooks to run linters before commit:
pre-commit install
- Install PostgreSQL from Docker:
docker-compose up -d
- Apply migrations to database:
python src/manage.py migrate
- Server start:
python src/manage.py runserver
- deploy with docker-compose:
docker-compose -f docker-compose.prod.yml up -d