Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/s0fft/sycloth-shop

Clothing-Shop — SSR Ecommerce Project on Django + API on Django REST Framework
https://github.com/s0fft/sycloth-shop

api-rest celery django django-rest-framework django-templates ecommerce layout postgresql postman python3 redis server-side-rendering unit-testing

Last synced: 1 day ago
JSON representation

Clothing-Shop — SSR Ecommerce Project on Django + API on Django REST Framework

Awesome Lists containing this project

README

        

# SyCloth
#### Clothing-Shop — SSR ecommerce project on Django + API on Django REST Framework

The online clothing store with registration/authorization, a
shopping cart, user-profile-settings, a configured admin
panel and order payment functionality (Stripe). Implemented
email-verification. Created API. Unit Tests are written. OAuth
2.0 added. For storage using PostgreSQL.

#### Stack:
- Pyhton
- Django
- Django REST Framework
- PostgreSQL
- Redis
- Celery

Additional libraries are specified in the `requirements.txt` file.

## Project Setup on Windows

### - Installing the Stack
To begin, install: [Python](https://www.python.org/downloads/) | [PostgreSQL](https://www.postgresql.org/) | [Redis](https://redis.io/)


Links are provided to the latest version of the tools.

### - Cloning a Project from GitHub
Create a root directory on your computer, then open it in your code editor or terminal.


Next, write this command into the command line:
```powershell
git clone https://github.com/S0fft/SyCloth-Shop.git .
```
You will see the project files appear in your directory.

### - Creating a Virtual Environment
Create a virtual environment:
```powershell
python -m venv .venv
```

And activate it:

```powershell
.venv\Scripts\Activate
```
### - Installing the Requirements
Next, install packages:

```powershell
python.exe -m pip install --upgrade pip
```
```powershell
pip install -r requirements.txt
```

### - Applying the Migrations and Fixture
Using Migrations to Create a Database Structure. Load data from fixture for products and appearance other information.

```powershell
python manage.py migrate
```

```powershell
python manage.py loaddata
```

### - Starting Redis and Celery
After, launch Redis and Celery using these commands:

```powershell
redis-server
```

```powershell
celery -A store worker --loglevel=INFO
```
### - Running the Server
Then, run server:
```powershell
python manage.py runserver
```
After starting the server, you can access the application by navigating to `http://127.0.0.1:8000` in your browser.

Project Setup on Unix-Like Systems


These commands do the same thing as described above:

### - Installing the Stack
To begin, install: [Python](https://www.python.org/downloads/) | [PostgreSQL](https://www.postgresql.org/) | [Redis](https://redis.io/)


Links are provided to the latest version of the tools.

### - Cloning a Project from GitHub
Create a root directory on your computer, then open it in your code editor or terminal.


Next, write this command into the command line:
```powershell
git clone https://github.com/S0fft/SyCloth-Shop.git
```
You will see the project files appear in your directory.

### - Creating a Virtual Environment
```bash
python3 -m pip install --upgrade pip
```

```bash
source ./venv/bin/activate
```

### - Installing the Requirements
```bash
pip install --upgrade pip
```
```bash
pip install -r requirements.txt
```

### - Applying the Migrations and Fixture
```bash
python3 manage.py migrate
```

```bash
python3 manage.py loaddata
```

### - Starting Redis and Celery
```bash
redis-server
```

```bash
celery -A store worker --loglevel=INFO
```

### - Running the Server
```bash
python3 manage.py runserver
```
After starting the server, you can access the application by navigating to `http://127.0.0.1:8000` in your browser.