A project as part of the class "Geosoftware II" in the winter term 2019/ 2020 at the Institute for Geoinformatics at the university of Muenster.
DEWI_Geosoft2_WS19-20_huef_jaku_nier_nisk_sten
- Download or clone the GitHub Repository
git clone https://github.com/tnier01/DEWI_Geosoft2_WS19-20_huef_jaku_nier_nisk_sten
- install Docker on your local machine
- open shell and navigate to folder
DEWI_Geosoft2_WS19-20_huef_jaku_nier_nisk_sten
- ensure that the settings in docker-compose.yml match the settings in config.yml
DEWI_Geosoft2_WS19-20_huef_jaku_nier_nisk_sten
└── api
| └── config.yml
└── docker-compose.yml
- run
docker-compose up
- open localhost:3000
- install Node.js v10.xx and MongoDB v4.xx on your local machine
- open shell and create MongoDB
- on Windows:
"C:\Program Files\MongoDB\Server\4.2\bin\mongod.exe" --dbpath="C:\path_to_DEWI_Geosoft2_WS19-20_huef_jaku_nier_nisk_sten\api\data"
(ensure that the folderdata
exists)
- on Windows:
- open another shell and navigate to folder
api
DEWI_Geosoft2_WS19-20_huef_jaku_nier_nisk_sten
└── api
- run
npm install
- run
npm start
- wait until API is started successfully
- open another shell and navigate to folder
app
DEWI_Geosoft2_WS19-20_huef_jaku_nier_nisk_sten
└── app
- run
npm install
- run
npm start
- open localhost:3000
A Postman test script is provided as
DEWITest.json
.
DEWI_Geosoft2_WS19-20_huef_jaku_nier_nisk_sten
└── api
└── test
└── DEWITest.json
It can either be uploaded to postman or executed via newman.
If newman is already installed you just can use npm test
:
- start the Application wit npm or docker like explained above
- open another shell and navigate to folder
api
- run
npm test
and inspect result
With newman it is also possible to inspect performance. Eaxample Test Run with 100 iterations and an json response object.
newman run <Folder> -n 100 -r json,cli --reporter-json-export <path>
A result of this performance test, conducted by ourselves, can be downloaded here.
Further information about newman.
Further information about the API is available in the wiki.
The provided config.yml
template offers various possibilities to configure the API.
DEWI_Geosoft2_WS19-20_huef_jaku_nier_nisk_sten
└── api
└── config.yml
A demo with test data supplied can be accessed via localhost:3000/demo.
- Phil Hüffer
- Nick Jakuschona
- Tom Niers
- Luc Niski
- Jan Stenkamp