peter authored on 15 Jul 2018
.vscode Created the base app with some basic functionality and tests for it. 1 year ago
js Created the base app with some basic functionality and tests for it. 1 year ago
style Created the base app with some basic functionality and tests for it. 1 year ago
test Created the base app with some basic functionality and tests for it. 1 year ago
views Created the base app with some basic functionality and tests for it. 1 year ago
.dockerignore Added docker files. 1 year ago
.gitignore Created the base app with some basic functionality and tests for it. 1 year ago
Dockerfile Added docker files. 1 year ago
README.md Added docker files. 1 year ago
app.js Added docker files. 1 year ago
data-provider.js Created the base app with some basic functionality and tests for it. 1 year ago
dummy-data.js Created the base app with some basic functionality and tests for it. 1 year ago
graphql-api.js Created the base app with some basic functionality and tests for it. 1 year ago
package-lock.json Added docker files. 1 year ago
package.json Added docker files. 1 year ago
README.md

WebGIS

This is a small project to look into pure functional programming a web app. The goal is to use dependency injection and to create automated tests with it.

Also I would like to create a cloud based GIS for myself.

Install

Simply clone the repository and run

npm install

Node can be downloaded here: https://nodejs.org/

Docker

If an image already exists (from previous builds) remove the old one.

docker rm -v webgis

Build the docker image with

docker build -t webgis .

Run docker with

docker run -d -p 8080:8080 --restart always --name webgis webgis

-d runs the container as a "detached" service. -p exposes the port via this mapping to the outside world. The first port is on the outside and the second port is on the inside.