A GraphQL backend for Trentino's public transports built for fun using Apollo Server, TypeGraphQL, Prisma, Docker & more....
Install dependencies
npm install
Run docker container
docker-compose up
You can seed the database using
npm run prisma:seed
Server with sandbox is ready at http://localhost:8080/graphql
A testing environment with apollo server sandbox is deployed on heroku here.
curl 'http://localhost:8080/graphql' \
-H 'Accept: */*' \
-H 'content-type: application/json' \
--data-raw '{"query":"query Stops {\n stops {\n stopId\n stopName\n }\n}\n","variables":{"where":{"stopId":"URBAN_2"}},"operationName":"Stops"}' \
--compressed
GraphQL schema can be found here.