You all remember akara ... right?
Shop backend API with Python 3.6+ and Starlette using Graphql. This project is published in github and can be seen here.
A Pipfile
is present in order to use enviroment setup using pipenv
. Simply run
$ pipenv install
to create and setup a virtual environment.
This project uses tinydb
as database provider, given that is a showcase project. This database should not be used in real environments given its performance issues.
All the data relevant for testing is in data/data.json
, which contains some products and a single user. The user has admin
as both username and pasword.
To start the server run:
$ pipenv run scripts/start.sh
This starts the server with debug configuration, to start it in production mode, run:
$ GUNICORN_CONFIG=python:config.gunicorn_prod pipenv run scripts/start.sh
Before running the tests, ensure all development dependencies are installed running:
$ pipenv install --dev
Then, to run all tests:
$ pipenv run scripts/test.sh