Skip to content

audiBookning/sample-nestjs-typeorm-paginate

Repository files navigation

Nestjs Typeorm paginate - Test

Part of a personal list of random samples code

Just a little repo to test the Nestjs Typeorm paginate package.

Notes

  • The DB used is Posgresql.

  • There is also a docker-compose file to be able to quickly start a Posgresql database without install on the operating system. The app was not put there as a service for a little more simplicity.

  • To run the DB: docker-compose up.

  • To execute the app: npm run start:dev.

  • This project use a module to inject all the entities repositories for easiness in the latter use in others modules. but it may not be the best pattern.

  • Accessing the http://localhost:3000/seed route will trigger a simple random seeding of the DB using faker.

  • Accessing the http://localhost:3000/truncate route will trigger a the cleaning of the DB.

TODO

  • Add tests

BuyMeACoffee

Buy Me A Coffee

Disclaimer

This code is not and will never be maintained. It is just some random sample code.

Feel free to copy and make any change you like.

License ISC © 2021 AudiBookning