Todo is a to-do list application written using and tested:
Assuming that you have an active internet connection and the latest version of Docker
installed and running.
Running the following in this directory:
make start
Once you see: Compiled successfully!
in the console the you can move on to the next step.
Once the dependencies have been downloaded and application has reported that the PostgreSQL, GraphQL and web app services are running, the application can be viewed by going to:
For debugging the GraphQL service can be found at: http://localhost:4000/graphql and PostgreSQL service will be available on port: 5432
.
Here are a few sample GraphQL queries to try out:
mutation {
createTodo(action: "hello world")
}
query {
allTodos {
id,
action,
completed
}
}
mutation {
updateCompleted(id: 1, completed: true)
}
Tests are automatically run when using make start
, however they can be run manually via: make dependencies test
.
make stop