vic3king / github-repo-ranking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nest Logo

Description

Simple nestJS application to return GitHub top-rated repositories. Your endpoint should have 3 input parameters:

  • Date: the date of the ranking. Ex: 2019-02-22
  • Language: the programming language that you will filter by
  • Limit: The max amount of values your endpoint will return

Installation

$ npm install

Running the app

# run with docker
$ docker-compose up

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

$ once app is up and running make requests to http://localhost:3000/api/github-ranking?date=2023-08-22&language=Javascript&limit=10 using any parameter of choice

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Technologies

  • Nest framework TypeScript starter repository.
  • Cache-manager Nest provides a unified API for various cache storage providers. The built-in one is an in-memory data store which I used for this assessment

Stay in touch

License

Nest is MIT licensed.

About


Languages

Language:TypeScript 92.6%Language:JavaScript 6.2%Language:Dockerfile 1.2%