Skip to content

zoran995/geoportal-server

Repository files navigation

Geoportal-Server

Build Status

A rewrite of TerriaJS-Server using NestJS architecture.

Description

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 wwwroot directory which can be specified on the command line. Default location is ./wwwroot
  • If files [wwwroot]/404.html and/or [wwwroot]/500.html exist they will be served for those HTTP error codes.
  • Authentication is currently not supported.

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •