https://github.com/srid/spas
Single-page application server using PostgREST and more
https://github.com/srid/spas
Last synced: about 1 year ago
JSON representation
Single-page application server using PostgREST and more
- Host: GitHub
- URL: https://github.com/srid/spas
- Owner: srid
- License: mit
- Created: 2015-05-21T04:03:29.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-21T02:13:04.000Z (almost 11 years ago)
- Last Synced: 2025-03-01T19:39:15.594Z (over 1 year ago)
- Language: Haskell
- Homepage:
- Size: 223 KB
- Stars: 32
- Watchers: 7
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/begriffs/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