Skip to content

energyaccessexplorer/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Energy Access Explorer Database API

The API is delegated PostgREST. Do check their documentation on setting it up.

The logic is handled by the SQL code and the database is assumed be installed and running.

This repository only contains the tools to generate PostgREST's configuration file and a couple shell scripts to start/check that it is running.

Installing/Building

The installation of PostgREST is trivial since it is a single binary file.

Clone the project and edit the variables on the makefile to your needs. Then, run:

$ bmake pgrest.conf check.sh start.sh env=production

Then, copy (if necessary) those files respectively to the deployment server.

Other utilities are available to start/stop the PostREST instance remotely.

$ bmake deploy env=production
$ bmake apistart env=production
$ bmake apistop env=production
$ bmake apirestart env=production

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published