Skip to content

zoran995/geoportal-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0359415 · Nov 29, 2024
Nov 29, 2024
Sep 9, 2021
Nov 29, 2024
Aug 31, 2023
Nov 29, 2024
Nov 29, 2024
Nov 25, 2024
Jul 11, 2021
Jul 12, 2022
Nov 24, 2024
Jul 11, 2021
Dec 28, 2021
Nov 24, 2024
Nov 25, 2024
Jul 11, 2021
Nov 29, 2024
Nov 24, 2024
Nov 25, 2024
Nov 25, 2024
Sep 9, 2021
Sep 6, 2021
Feb 20, 2022
Nov 29, 2024

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