To get a copy of the project up and running on your local machine for development and testing purposes,
-
For
WINDOWS
users: -
For
LINUX
users:
-
clone this repository
git clone https://github.com/KarenNgala/online-school-database
-
Install and actvate a virtual environment
$ python3.6 -m venv --without-pip virtual $ source virtual/bin/activate
-
Install pip and project dependencies
(virtual) $ curl https://bootstrap.pypa.io/get-pip.py | python virtual) $ pip install -r requirements.txt
- See deployment for notes on how to deploy the project on a live system.
- To get a development env running, use the .env.example file to create your own
.env
file. - Create a postgres db and add the credentials to the .env file
(virtual)$ psql
pc-name=# CREATE DATABASE <name>;
- Apply initial migrations
(virtual) $ python manage.py migrate
- Run migrations to your database
(virtual) $ python manage.py makemigrations application
(virtual) $ python manage.py migrate
- Create admin account
(virtual) $ python manage.py createsuperuser
- Start development server
(virtual) $ python3 manage.py runserver
Run automated tests for this system
(virtual) $ python3 manage.py test application
With all environment variables changed to suit your local copy of this repository, deploy the application to Heroku to see it live
- Django 3.1 - The web framework used
- Heroku - Deployment platform
- Python3.6 - Backend logic
- Postresql - Database system
This project is licensed under the MIT License - see the LICENSE.md file for details