Skip to content

Commit f681335

Browse files
authored
Merge pull request #173 from mapswipe/dev
Switch Master to v2
2 parents e011687 + 11f2b1e commit f681335

File tree

398 files changed

+155511
-5386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

398 files changed

+155511
-5386
lines changed

.gitignore

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,17 @@ ENV/
110110
.envrc
111111
*.pickle
112112
.idea
113-
import_module/data
114113

115-
# don't upload config files and api keys etc.
116-
cfg/config.cfg
117-
cfg/configuration.json
118-
mapswipe_workers/configuration.json
119-
cfg/serviceAccountKey.json
120-
cfg/msf-mapswipe_serviceAccountKey.json
121-
cfg/dev-mapswipe_serviceAccountKey.json
122-
cfg/test-mapswipe_serviceAccountKey.json
114+
# serviceAccountKey for Google Platform access
115+
*serviceAccountKey.json
116+
117+
# don't upload config files and api keys etc. for python_workers
118+
mapswipe_workers/config/configuration.json
123119

124120
# don´t upload data dir
125121
data/
126122

123+
# don't upload app config for project managers dashboard
124+
app.js
127125

128126
.DS_Store

.readthedocs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: docs/source/conf.py
11+
12+
# Build documentation with MkDocs
13+
#mkdocs:
14+
# configuration: mkdocs.yml
15+
16+
# Optionally build your docs in additional formats such as PDF and ePub
17+
formats: all
18+
19+
# Optionally set the version of Python and requirements required to build your docs
20+
python:
21+
version: 3.7
22+
install:
23+
- requirements: docs/source/requirements.txt

README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
1-
# Python MapSwipe Workers Documentation
2-
[MapSwipe](http://mapswipe.org/) is a mobile app that lets you search satellite imagery to help put the world's most vulnerable people on the map. This repository handles everything related to the backend processing of the app. If you are new to MapSwipe it might be good to have a look at the [FAQs](http://mapswipe.org/faq.html) first.
1+
# MapSwipe Back-End
32

4-
## Getting Started
5-
The python-mapswipe-workers consist of several python scripts. They do the following things:
6-
* **import**: create new projects for the MapSwipe app, which have been uploaded by project managers from humanitarian organizations
7-
* **transfer results**: make sure that the produced results are stored in a data base
8-
* **update**: generate up-to-date statistics in the app, e.g. progress and number of contributors per project
9-
* **export**: provide access to MapSwipe data in json-format
3+
[MapSwipe](http://mapswipe.org/) is a mobile app that lets you search satellite imagery to help put the world's most vulnerable people on the map. If you are new to MapSwipe it might be good to have a look at the [FAQs](http://mapswipe.org/faq.html) first.
104

11-
We created a documentation for this project at [Read the Docs](https://mapswipe-workers.readthedocs.io/en/master/).
5+
The MapSwipe Back-End consists of a number of components:
126

13-
## Project Types
14-
The MapSwipe backend workers currently support the following project types:
7+
1. Firebase Project
8+
2. MapSwipe Workers
9+
4. Postgres Database
10+
3. Manager Dashboard
11+
5. API
12+
13+
Please refer to the documentation for more information: https://mapswipe-workers.readthedocs.io/en/
14+
15+
16+
## Ressources
17+
18+
- GitHub repository of the MapSwipe Back-End: https://github.com/mapswipe/python-mapswipe-workers
19+
- GitHub repository of the MapSwipe Website: https://github.com/mapswipe/mapswipe.github.io
20+
- GitHub repository of the MapSwipe App https://github.com/mapswipe/mapswipe
21+
- Website of MapSwipe: https://mapswipe.org
22+
- OSM-Wiki page of MapSwipe: https://wiki.openstreetmap.org/wiki/MapSwipe
1523

16-
| Name | ID | Description | Screenshot |
17-
| ---- | -- | ----------- | ---------- |
18-
| BuildArea | 1 | A 6 squares layout is used for this project type. By tapping you can classify a tile of satellite imagery as *yes*, *maybe* or *bad_imagery*. Project managers can define which objects to look for, e.g. "buildings". Furthermore, they can specify the tile server of the background satellite imagery, e.g. "bing" or a custom tileserver. | <img src="docs/_static/img/BuildArea_screenshot.png" width="250px"> |
1924

2025
## License
26+
2127
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details
2228

2329
## Authors
30+
2431
* **Benjamin Herfort** - HeiGIT - [Hagellach37](https://github.com/Hagellach37)
2532
* **Marcel Reinmuth** - HeiGIT - [maze2point0](https://github.com/maze2point0)
2633
* **Matthias Schaub** - HeiGIT - [Matthias-Schaub](https://github.com/Matthias-Schaub)
2734

2835
See also the list of [contributors](contributors.md) who participated in this project.
2936

3037
## Acknowledgements
38+
3139
* Humanitarian organizations can't help people if they can't find them.

api/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM nginx:stable
2+
COPY nginx.conf /etc/nginx/conf.d/
3+
COPY index.html /usr/share/nginx/html/api/
File renamed without changes.

api/nginx.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
server {
2+
listen 80;
3+
server_name api;
4+
5+
location / {
6+
alias /usr/share/nginx/html/api/;
7+
autoindex on;
8+
}
9+
}

cfg/your_config_file.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

contributors.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
# Python MapSwipe Workers contributors (sorted alphabetically)
1+
# MapSwipe Workers contributors (sorted alphabetically)
22

33
* [Benjamin Herfort](https://github.com/Hagellach37):
4-
* Author and maintainer
5-
* most features development
4+
* author and maintainer
5+
* development of most of the features
66

77
* [Marcel Reinmuth](https://github.com/maze2point0):
88
* server setup
99
* data base setup and processing
1010

1111
* [Matthias Schaub](https://github.com/Matthias-Schaub)
12-
* documentation and readthedocs
13-
* testing
12+
* documentation
13+
* testing
14+
* project structure
15+
* server setup
16+

deploy.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
git pull
2+
python3 test_config.py
3+
sudo docker-compose build --no-cache
4+
sudo docker-compose up -d --force-recreate
5+
sudo docker logs firebase_deploy
6+
sudo docker ps -a

0 commit comments

Comments
 (0)