Nestjs application that saves trending github repositories to Mongodb every X minutes and provides access to them through a public API.
Create a .env file with PORT, GITHUB_TRENDS_URL, MONGO_USER, MONGO_PASS and MONGO_DBNAME values.
Use the package manager npm to install all dependencies.
npm install
npm start
- /trends - get all trend repositories from db
- /trends/:id - get trend repository from db by id
- /trends/:id?filter=name - optional. get trend repository from db by name
- /trends/sync - reset the internal request timer to the github trends api