A basic Library CRUD API with Nest, TypeORM and MySQL. Improving complexity overtime to learn new concepts.
Tables in the system so far:
user(id, name, age, email, password, role)
author(id, first_name, last_name, email)
book(id, title, author_id[fk "author"])
genre(id, name)
book_genre(book_id[fk "book"], genre_id[fk "genre"])
Currently working on:
Adding some more columns to existing entities and delete functionality for all cruds on system.
-
dotenvexample file at root shows environment variables necessary to run the api
-
no seeds available for now
-
"npm start" for running the api
-
"npm run start:dev" for running the api on watch mode
-
"npm run test" for running tests
-
typeorm cli scripts at package.json