/Nestjs-PostGres-PostGis-Docker

The objective is to develop an API, with a single endpoint, allowing to retrieve the above offers depending on a given position and a predefined radius. Input parameters of this endpoint: ◦ latitude (ex: 48.8659387) ◦ longitude (ex: 2.34532) ◦ radius (ex: 10 (km))

Primary LanguageTypeScript

Job Offer Filteration

Tech stack

  • Nest
  • Docker
  • PostGreSQL
  • TypeORM

Docker Compose

Need to run

$ docker-compose up -d

Migrations

Need to run

$ yarn run db:migrate

After docker compose and migrations, Application will start on port 4040. Navigate to App

Unit Tests

Need to run

$ yarn test

Testing Application

For Documentation Swagger has been congfigure. To hit the APIs navigate to Documentation after running the app.