/inseearrondissement

nodeJs api (nest) to get french business unit from address using google geocode and opendatasoft api

Primary LanguageTypeScript

Nest Logo

Description

NodeJs api (nest) to get french business unit from address using google geocode and opendatasoft api

You can try it at : https://yylosiqk5d.execute-api.eu-west-3.amazonaws.com/Stage/arrondissement

Installation

You will need a google api key with geocoding api enabled

$ npm install
$ cp config/security.ts.example config/security.ts

Fill you api in config/security.ts Test the application

$ npm run test

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

curl -X POST
-H "Content-Type: application/json"
-d '{ "address": "48 avenue de Villiers, 75017 Paris"}'
localhost:3000/arrondissement

Test

# unit tests
$ npm run test