In this project I will be using GraphQL primarily to experiment with alternatives to RESTFUL design practices. I will also be using react and Django, both of which I have minimal experience with to further my learning in other frameworks.
This project was created using a tool I built: synth
-
macOS High Sierra 10.13.6 - OS Used
-
Docker CE 18.09.2 - Version of docker used
-
Must have
git
installed -
Must have
docker
installed
$ sudo apt-get install git
Clone the project
git clone https://github.com/BennettDixon/book_query_app;
cd book_query_app;
Run the container network, this will build them the first time so be patient while images are downloaded and containers are built
docker-compose up -d
Locate the postgres container id using
docker ps
Execute the following, substituting your postgres container id. This will setup a user and database in your postgres container. You only need to do this once unless you delete the docker-compose volume mount or the postgres data on your local machine.
docker exec -it <container-id> psql -U postgres -f /app/postgres_setup.sql
Visit the GraphQL endpoint localhost:8800/graphql
and play with GraphQL Queries!
Feel free to add objects to the /nginx_router/backend/books.json
file for further testing! They will be loaded in each time you boot the containers.
docker-compose down
- Bennett Dixon - @BennettDixon
This project is licensed under the MIT License - see the LICENSE.md file for details
- Holberton School & Docker for the pass to DockerCon 2019!