Skip to content

small self-study project to get up-to-speed with node, typescript, etc.

Notifications You must be signed in to change notification settings

FominSergiy/book-directory

Repository files navigation

Description

This is a study project to get familiar with some Node-related technologies.

The Stack

  • Nest framework TypeScript starter repository.
  • TypeScript Typescript
  • Prisma ORM for the client and database
  • GraphQL the "new" way to API

Bootstrap

Suggest running it in dockers. You will need Docker and Docker-compose installed.

To boot app the app

npm run dockers-build

Once up you will have a functioning backend that runs both the REST API and the GraphQL together.

GraphQL

available as a sandbox in the browser.

http://localhost:8794/graphql
REST API

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"

To run tests

npm run dockers-test

About

small self-study project to get up-to-speed with node, typescript, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published