Cache application for https://swapi.dev/ API. Cache is set up to autoclean on given time. To set this time go to: \src\Cleanup\scheduler.service.ts
You will find following code:
onModuleInit() { cron.schedule('minute hour * * *', async () => { await this.cleanupService.cleanupCollections(); }); }
replace 'minute' and 'hour' with real values to set time
You should have NestJS installed globally.
- npm i
- npm run start:dev ( you need to have mongodb running locally)
- npm i
- npm run build
- npm run start:prod
- npm run test
In project exist Dockerfile and docker-compose.yaml.
- Navigate in wsl2 or another place where docker is installed to project directory.
- docker compose build
- docker compose up -d
App should be running on port 3001 of your localhost. If some error occurs, create docker network manually with:
- docker network create app_net