Skip to content
/ spas Public

Single-page application server using PostgREST and more

License

Notifications You must be signed in to change notification settings

srid/spas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spas

spas is a server sitting in between your SPA (single-page application) and PostgreSQL database. It provides an auto-generated REST API for the PostgreSQL data using PostgREST.

Basic idea

  • Create a thin server wrapping PostgREST with these additional features:
  • Static file serving
  • Authentication (using basic auth for now)

Getting started

$ export SPAS_USERNAME=myname
$ export SPAS_PASSWORD=mypassword
$ export DATABASE_URL=postgres://...  # also provided by Heroku
$ export PORT=4000
$ cd /path/to/static/files && spas
...

See https://github.com/srid/chronicle for an Elm application that uses spas.

Background

Mailing discussion: https://groups.google.com/forum/#!topic/elm-discuss/6kyabQgUMJk

About

Single-page application server using PostgREST and more

Resources

License

Stars

Watchers

Forks

Packages