API server for next freemap webapp.
- Node 22+
- 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 watchPlease provide settings in environment variables. Then:
npm i
npm run build
npm start | npx pino-prettyWe 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"ELEVATION_DATA_DIRECTORY- TODOFACEBOOK_APP_SECRET- TODOGARMIN_OAUTH_CALLBACK- TODOGARMIN_OAUTH_CONSUMER_KEY- TODOGARMIN_OAUTH_CONSUMER_SECRET- TODOGOOGLE_CLIENT_ID- TODOGOOGLE_CLIENT_SECRET- TODOHTTPS_PORT- TODOHTTP_PORT- TODOHTTP_SSL_CERT- TODOHTTP_SSL_KEY- TODOMAILGIN_API_KEY- TODOMAILGIN_DOMAIN- TODOMAILGIN_ENABLE- TODOMARIADB_DATABASE- TODOMARIADB_HOST- TODOMARIADB_PASSWORD- TODOMARIADB_PORT- TODOMARIADB_USER- TODOOAUTH_CONSUMER_KEY- TODOOAUTH_CONSUMER_SECRET- TODOOSM_OAUTH2_CLIENT_ID- TODOOSM_OAUTH2_CLIENT_SECRET- TODOOSM_OAUTH2_REDIRECT_URI- TODOPICTURES_DIRECTORY- TODOPURCHASE_CALLBACK_URL- TODOPURCHASE_SECRET- TODOPURCHASE_URL_PREFIX- TODOTRACKING_SOCKET_PORT- TODOTRACKLOGS_DIRECTORY- TODOURS_EARTHDATA_NASA_PASSWORD- TODOURS_EARTHDATA_NASA_USERNAME- TODOWEB_BASE_URL- TODO
ssh -N -R 0.0.0.0:17744:localhost:3001 fm4