SOMISANA Web
Quick start
Start the API
# Install Node.js (v20.5.0)
# Install chomp (wait for output, can take a while)
npm install -g chomp && chomp --version
cd api
npm install
chomp --watch
Start the React.js client
cd client
npm install
npm start
Load assets
Navigate to <repo root>/assets/ and follow the instructions on the README to load 3rd party assets into the database
Start a local MongoDB server
Start a local PostGIS server
Start a local pg_tileserv server
Assuming you have a PostGIS server running as a docker container with the name postgis on a network called postgis:
docker run \
-dt \
--restart always \
--name pg_tileserv \
-p 7800:7800 \
--net postgis \
-e DATABASE_URL=postgres://admin:password@postgis:5432/somisana_local \
pramsey/pg_tileserv:latest
Usage reports
Usage reports are accessible as MongoDB views that are registered with the database on API startup