Skip to content

Gr0ki/REST-API-car-park

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here is a REST API for Car park.

API

📚 Documentation 📚

Dependencies

Use [pipenv] or [pip] to install dependencies:

[pipenv]

The Pipifile and Pipfile.lock files contains info about project dependencies. To install all dependencies form a Pipifile the pipenv package required.

Install the pipenv package:

pip install pipenv

Once pipenv is installed, the following command will create virtual enviroment and install all project dependencies:

pipenv install

[pip]

To install all dependencies form a requirements.txt file enter the following command:

pip install -r requirements.txt

Enviroment Variables

For the server to run properly, the .env file has to be created, which has to contain environment variables, such as:

  • SECRET_KEY=some-key

Starting the server

To start the server run:

python mange.py runserver

Admin profile login data:

Username: admin Password: admin E-mail: admin@example.com