Skip to content

ma9dalen8/geosoftware

Repository files navigation

Geosoftware 1 - Exercise 7

by Cornelius Zerwas, Ole Heiland, Magdalena Fischer

This Repository contains all the scripts for the exercise 7 for the Geosoftware 1 course.
The project has two HTML pages. On the first page all the busstops from Münster are displayed in a map. If they are clicked, the next busconnections will be shown in the table below. Also all the Objects can be loaded from the Mongodb database. If there are already some entries, the distance to the next Busstop can be calculated.
On the second HTML page- a user can enter locations. Whether using an adress, the browser location or dropping a marker. All Points will be safed in the Database. After loading the Database to the Website again, single or multiple Objects can be deleted. Using the Update button, after checking one Object, loads the coordinates to an textarea so they can be changed. Afterwards they are updated in the database.

Getting Started

I used npm express and Mongodb for that project. Installing the server, set the main page to "mainIndex.html" and the start scripts to "node start.js"
Packages
npm install --express
npm install --mongodb
npm install --body-parser
npm install --jquery

For the mapping and the geocoding I used Mapbox.
--> Please fill your accessTokens into the scripts. Twice in "usermap.js", once in "map.js"

For Testing

npm install --global mocha
npm install @turf/bearing
npm install @turf/distance
npm test

For Dockerization

install docker
use Dockerfile and docker-compose.yml from this repository
or
pull from dockerHub: https://hub.docker.com/repository/docker/ma9dalen8/node-web-app
check if all images and containers are deleted
afterwards
docker-compose up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published