peter authored on 15 Jul
.vscode Created the base app with some basic functionality and tests for it. 12 months ago
js Created the base app with some basic functionality and tests for it. 12 months ago
style Created the base app with some basic functionality and tests for it. 12 months ago
test Created the base app with some basic functionality and tests for it. 12 months ago
views Created the base app with some basic functionality and tests for it. 12 months ago
.dockerignore Added docker files. 11 months ago
.gitignore Created the base app with some basic functionality and tests for it. 12 months ago
Dockerfile Added docker files. 11 months ago
README.md Added docker files. 11 months ago
app.js Added docker files. 11 months ago
data-provider.js Created the base app with some basic functionality and tests for it. 12 months ago
dummy-data.js Created the base app with some basic functionality and tests for it. 12 months ago
graphql-api.js Created the base app with some basic functionality and tests for it. 12 months ago
package-lock.json Added docker files. 11 months ago
package.json Added docker files. 11 months 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.