This is a demo proyect for Z1 Company using Django Postgres and Graphql
mkdir demo-proyect
cd demo-proyect
git clone https://github.com/abendemar/django-graphql-demo.git .
This project use pre-commit tool to make easy have a clean and organize code. Installed with some hooks like:
- isort
- black
- flake8
This project use pipenv to manage environment
There are a docker-compose to run a local environment.
.env file has environment variables to use with docker
docker-compose.yml
- Instance of Postgre Database
- Instance of Python smtpd debugging server
- Instance of Django Project
Execute this line to start proces
docker-compose up -d
Navigate to this urls to check server is running:
http://127.0.0.1:8000/admin/
user:[email protected]
pass: Alonso13
http://127.0.0.1:8000/graphql/
To execute test we have to:
pipenv install --dev
pipenv shell
export $(grep -v '^#' .env_local | xargs -d '\n')
cd z1socialideas
pytest
.env_local file has environment variables to use in local
- Refactors in some endpoints
- Add Cache
- Add more test
- Deploy in production