Backend do site de pedidos de pizza para a matéria optativa de desenvolvimento web.
docker-compose build
docker-compose up
docker-compose run app rake db:setup
Interface: http://localhost:3000/graphiql
query {
pedidos {
id
email
endereco
sabores {
nome
ingredientes
}
tamanho {
nome
}
borda {
nome
}
}
}
mutation {
createPedido(
email: "[email protected]",
endereco: "R: Beira Rio, nº 2000",
tamanho: 1,
sabores: [1, 2],
borda: 1
) {
id
email
endereco
sabores {
nome
ingredientes
}
tamanho {
nome
}
borda {
nome
}
}
}