In order to launch the server, please execute the following instructions:
- Create a virtual environment and install the dependencies:
$ virtualenv -p python3 venv/
$ source venv/bin/activate
$ pip install -r requirements.txt
- Run the server:
$ cd cabify_test/
$ python manage.py runserver
- Play!
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)
To run tests execute the following command (you must be under cabify_test
folder):
$ python manage.py tests checkout_app