Demonstration application for Flow which provides IP inferred location information and current weather or forecast (location based or queried by city name)
Application is running @ https://sheltered-earth-53915.herokuapp.com/v1
- run
npm install
- make sure to be running Node v10.15.13
- to run tests
cp .env.example .env
is enough - to try out the API create
.env
file and punch in your environment variables following.env.example
file. - start the server and browse
http://localhost:PORT/v1/documentation
for the swagger docs!
npm run start
: starts servernpm run test
: runs linter and then tests (100% coverage)
dotenv
: for loading.env
file containing sensitive information on to process environment variables.fastify
: web framework APIgot
: HTTP request APInock
: HTTP mockinglodash
: for helper functionseslint
: linter tooleslint-config-google
: base linter configtap
: testing suitefastify-status
: provides status endpointfastify-swagger
: OpenAPI Specification plugin