cpinamtz / cabify_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Let's play!

In order to launch the server, please execute the following instructions:

  1. Create a virtual environment and install the dependencies:
$ virtualenv -p python3 venv/
$ source venv/bin/activate
$ pip install -r requirements.txt
  1. Run the server:
$ cd cabify_test/
$ python manage.py runserver
  1. Play!

Admin site

To access to admin site go to the following URL: (http://localhost:8000/admin) And introduce these credentials:

  • User: admin
  • Pass: c4b1fyr0cks

There the admin user can add new products to the shop and specify discounts related to those products (only one type of discount per product is available)

Testing

To run tests execute the following command (you must be under cabify_test folder):

$ python manage.py tests checkout_app

About


Languages

Language:Python 95.4%Language:HTML 4.6%