This is a study project to get familiar with some Node-related technologies.
- Nest framework TypeScript starter repository.
- TypeScript Typescript
- Prisma ORM for the client and database
- GraphQL the "new" way to API
Suggest running it in dockers. You will need Docker and Docker-compose installed.
npm run dockers-build
Once up you will have a functioning backend that runs both the REST API
and the GraphQL
together.
available as a sandbox in the browser.
http://localhost:8794/graphql
available as series of routes
reading
curl localhost:8794/books
curl localhost:8794/book/1
creating
curl -X POST localhost:8794/create-book -d '{"title":"abc","authorFirstName":"ABC","authorLastName":"ABC","year":"2022-12-12"}' -H "Content-type: application/json"
npm run dockers-test