Releases: Datawheel/geoservice-api
Releases · Datawheel/geoservice-api
v0.3
This release marks the first move towards a generalized geoservice, that works independent of US geographies.
- Removes US-specific dependencies
- Includes distance endpoint
Installation steps
- Download the attached
geoservice-api_0.0.3_all.deb
package - Run
sudo dpkg -i geoservice-api_0.0.3_all.deb
- Configure
/etc/default/geoservice-api
as follows:
NODE_ENV="production"
GSA_DB_NAME=DB_HERE
GSA_DB_PW=PASSWORD_HERE
GSA_DB_USER=USER_HERE
GSA_DB_HOST=HOST_HERE
GSA_DB_PORT=5432
GSA_USER_CONFIG_FILE=/path/to/my_levels.json
PORT=8080
(Feel free to set PORT
as desired)
- Run
sudo systemctl daemon-reload
sudo service geoservice-api restart`
And you should be good to go! You can check the service status by running
sudo service geoservice-api status
And you can test the API via:
curl http://localhost:8080/api
(Note you may need to open ports -- if desired -- via Google Cloud's firewall to access this remotely or use a reverse proxy from nginx)