This is the API for the SATF tool and communication with the database.
The API is built using Typescript and ExpressJS.
Author: Casper Fibaek
Copyright: NIRAS A/S and Casper Fibaek
License: Undisclosed
Defines the server, port, cache and headers for the API.
Holds all the routes (endpoints) used by the API. Everything uses the async/await syntax.
A range of validators for the input data. Eg. test if input is really a coordinate.
Steps for installation: Running at http://satf-api.azurewebsites.net/
1. Compile the typescript using npm run build
2. Deploy the server to azure using the app-service functionality.
1. Run npm run build (requires typescript installed globally)