A rewrite of TerriaJS-Server using NestJS architecture.
It contains following services:
/api/proxy: A proxy service which applies CORS headers for data providers that lack them. Add URLs to config.json to enable them./api/proj4def: a proj4 coordinate reference system lookup service./api/proxyabledomains: return a JSON of domains the server is willing to proxy for/api/ping: returns 200 OK./api/share/X-Y(GET): uses prefix X to resolve key Y against some configured JSON storage provider (Gist and AWS S3 implemented)/api/share(POST): stores a piece of JSON with a configured storage provider (Gist and AWS s3implemented)/api/serverconfig: retrieve (safe) information about how the server is configured./api/feedback(POST): a feedback from user that will sent to specified provider. Currently supported are Github issues, Redmine and email, they can be combined.- It is possible to use it as a static server which will server all other requests from the
wwwrootdirectory which can be specified on the command line. Default location is./wwwroot - If files
[wwwroot]/404.htmland/or[wwwroot]/500.htmlexist they will be served for those HTTP error codes. - Authentication is currently not supported.
$ yarn install# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov