Example project built using Django, Graphql and PostgreSQL.
To see the list of features done and which ones are still in develop you can read the following file: Requirements.md
There is a Postman collection with all the queries and mutations available (here!).
To get a local copy up and running follow these simple steps.
This is an example of how to list things you need to use the software and how to install them.
- Clone the repo
git clone https://github.com/jesuschmn/zoughts.git
- Docker compose
docker-compose up -d
- [Optional] Create a superuser
docker exec -it container_id python manage.py createsuperuser
For development, with the repo cloned, you have to do the following:
- Create and activate the virtual environment (info)
- Install requirements
pip install -r requirements.txt
- Change the settings of the projects. Specifically, the DATABASE HOST value like this:
DATABASES = {
'default': {
...
'HOST': 'localhost',
...
}
}
- Then up the postgresql database with the following command:
docker-compose up -d bd
- Last, just start the server executing:
python manage.py runserver
And start coding and chill.
To use the API you have to:
- Register an user.
- Verify your account
Then you can use the token got to access to the rest of the API (create/list ideas, search users and request connections, restore your password, etc.).
Jesús Chacón - Twitter - jesuschaconmontero@gmail.com
Project Link: https://github.com/jesuschmn/zoughts