Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaCaRs-Forum

Car-Forum — Forum Project on Django REST Framework // APIs in Different Ways

A forum of famous cars where authorized customers can add and publish articles about cars. Implemented CRUD, permissions, authorization using JWT tokens and much more.

Stack:

  • Pyhton
  • Django REST Framework
  • SQLite

Additional libraries are specified in the requirements.txt file.

Project Setup on Windows

- Installing the Stack

To begin, install: Python
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/FaCaRs-Forum.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 and Fixture

Using Migrations to Create a Database Structure. Load data from fixture for products and appearance other information.

python manage.py migrate
python manage.py loaddata <path_to_fixture_files>

- 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:

- Installing the Stack

To begin, install: Python
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/FaCaRs-Forum.git

You will see the project files appear in your directory.

- Creating a Virtual Environment

python3 -m pip install --upgrade pip
source ./venv/bin/activate

- Installing the Requirements

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

- Applying the Migrations and Fixture

python3 manage.py migrate
python3 manage.py loaddata <path_to_fixture_files>

- Running the 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.

About

Car-Forum — Forum Project on Django REST Framework // APIs in Different Ways

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages