NodeJS: 18
NestJS: 10
- run
npm i
- copy
mikro-orm.config.ts.example
in/src
directory tomikro-orm.config.ts
and make the required changes to connect to your database. - run
npm run mikro-orm -- migration:up
to generate the tables - run
npm run mikro-orm -- seeder:run
to seed the database. The seeder has API key for Movie API hard coded for ease. - run
npm run start
to start the server. App is hosted on port3000
- import the
insomnia.collection.json
file in Insomnia Rest Client to execute requests.
All the implementations are avialable via Swagger/OpenAPI document hosted at: http://localhost:3000/doc