Freemap 3 API
API server for next freemap webapp.
Requirements
- Node 10+
- MariaDB Database Server
- exiftran (for uploaded images processing)
- gdal_translate (for geotiff to HGT conversion)
Running in development mode
Please provide settings in environment variables or put them to .env
file in project root directory.
npm i
npm run watch | npx bunyan
Running in production mode
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
).
Running tests
npm i
npx mocha test/
Running single test:
./node_modules/.bin/mochamocha test -g "POST /tracklogs should return uid"
Environment variables
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
- TODOOAUTH_CONSUMER_KEY
- TODOOAUTH_CONSUMER_SECRET
- TODOPICTURES_DIRECTORY
- TODOTRACKING_SOCKET_PORT
- TODOTRACKLOGS_DIRECTORY
- TODOWEB_BASE_URL
- TODO