API server for next freemap webapp.
- Node 10+
- MariaDB Database Server
- exiftran (for uploaded images processing)
- gdal_translate (for geotiff to HGT conversion)
Please provide settings in environment variables or put them to .env
file in project root directory.
npm i
npm run watch | npx bunyan
Please provide settings in environment variables. Then:
npm i
npm run build
npm start | npx bunyan
We strongly recommend to use forever
command (installed with npm i -g forever
).
npm i
npx mocha test/
Running single test:
./node_modules/.bin/mochamocha test -g "POST /tracklogs should return uid"
EARTHEXPLORER_PASSWORD
- TODOEARTHEXPLORER_USERNAME
- TODOELEVATION_DATA_DIRECTORY
- TODOFACEBOOK_APP_SECRET
- TODOGOOGLE_CLIENT_ID
- TODOGOOGLE_CLIENT_SECRET
- TODOHTTP_PORT
- TODOHTTP_SSL_CERT
- TODOHTTP_SSL_ENABLE
- TODOHTTP_SSL_KEY
- TODOMAILGIN_API_KEY
- TODOMAILGIN_DOMAIN
- TODOMAILGIN_ENABLE
- TODOMARIADB_DATABASE
- TODOMARIADB_HOST
- TODOMARIADB_PASSWORD
- TODOMARIADB_PORT
- TODOMARIADB_USER
- TODONODE_ENV
- TODOOSM_OAUTH2_CLIENT_ID
- TODOOSM_OAUTH2_CLIENT_SECRET
- TODOOSM_OAUTH2_REDIRECT_URI
- TODOPICTURES_DIRECTORY
- TODOTRACKING_SOCKET_PORT
- TODOTRACKLOGS_DIRECTORY
- TODOWEB_BASE_URL
- TODO