Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.03 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.03 KB

Discount Manager

The project allows you to manage a database with maps. The database stores card and purchase data.

Getting Started

The first thing to do is to clone the repository:

$ git clone https://github.com/polina-koval/DiscountManager.git
$ cd DiscountManager

Create a virtual environment to install dependencies in and activate it:

$ virtualenv venv  
$ source venv/bin/activate

Then install the dependencies:

(venv)$ pip install -r requirements.txt

There is a file in the repo ".env.example", this file for use in local development. Duplicate this file as .env in the root of the project and update the environment variables SECRET_KEY, etc.

$ cp .env.example .env

Once pip has finished downloading the dependencies and the variable is updated:

Django:

(venv)$ python manage.py migrate
(venv)$ python manage.py createsuperuser
(venv)$ python manage.py runserver

Navigate to Main page with cards and work with the existing cards.