Skip to content

Glasses-Shop — SSR Ecommerce Project on Django (FBV) - PAUSED

License

Notifications You must be signed in to change notification settings

S0fft/Sglass-Shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sglass

Glasses-Shop — SSR Ecommerce Project on Django (FBV)

Оnline glasses store offering basic features for users. The project is built on an SSR architecture and includes four applications: products, users, orders, and uses Function-Based Views (FBV).

Stack:

  • Python
  • Django
  • PostgreSQL

Additional libraries are specified in the requirements.txt file.

Project Setup on Windows

- Installing the Stack

To begin, install: Python | PostgreSQL
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:

git clone https://github.com/S0fft/Sglass-Shop.git .

You will see the project files appear in your directory.

- Creating a Virtual Environment

Create a virtual environment:

python -m venv .venv

And activate it:

.venv\Scripts\Activate

- Installing the Requirements

Next, install packages:

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

- Applying the Migrations

Using Migrations to Create a Database Structure

python manage.py migrate

- Running the Server

Then, run server:

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 but only on Unix systems:

- Installing the Stack

Install: Python | PostgreSQL
Link 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:

git clone https://github.com/S0fft/Sglass-Shop.git .

You will see the project files appear in your directory.

- Creating a Virtual Environment

python3 -m venv ./venv
source ./venv/bin/activate

- Installing the Requirements

python3 -m pip install --upgrade pip
pip install -r requirements.txt

- Applying the Migrations

Using Migrations to Create a Database Structure

python3 manage.py migrate

- Running the Server

Then, run server:

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.