Skip to content

Latest commit

 

History

History
82 lines (59 loc) · 1.93 KB

README.md

File metadata and controls

82 lines (59 loc) · 1.93 KB

mail package manager logo

Tutor's Companion


Python Django Static Badge

Table of contents

Description

A backend application to manage a small private tutoring business.

Requirements

  • Python 3.9.6
  • Django 4.2.5
  • Django REST Framework 3.14.0

Installation

Once you've cloned the repository, your next step is to establish a virtual environment to ensure a pristine Python installation. This can be achieved by executing the following command:

$ python -m venv env

After this, it becomes essential to activate the virtual environment. For additional details on this step, you can find more information here:

To install all the necessary dependencies, execute the command:

$ pip install -r requirements.txt

Environment variables

Create a .env file with the following in the root

# server mode
$ DEBUG=<DEBUG>

# app secret
$ SECRET_KEY=<SECRET_KEY>

# database name
$ DATABASE_NAME=<DATABASE_NAME>

# database host
$ DATABASE_HOST=<DATABASE_HOST>

# database user
$ DATABASE_USER=<DATABASE_USER>

# database user password
$ DATABASE_PASSWORD=<DATABASE_PASSWORD>

# database port
$ DATABASE_PORT=<DATABASE_PORT>

Running the app

To start up the Django's development server, navigate to the root of the project and run the command:

$ python manage.py runserver