Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yne/postgrest-spa
Postgrest + Vue SPA boilerplate
https://github.com/yne/postgrest-spa
nginx postgresql postgrest vue
Last synced: about 1 month ago
JSON representation
Postgrest + Vue SPA boilerplate
- Host: GitHub
- URL: https://github.com/yne/postgrest-spa
- Owner: yne
- License: mit
- Created: 2019-10-04T01:05:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-03T09:58:37.000Z (about 3 years ago)
- Last Synced: 2024-10-30T02:41:41.041Z (3 months ago)
- Topics: nginx, postgresql, postgrest, vue
- Language: HTML
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Install
```sh
docker-compose up -d
# Deploy your DB structure
docker exec -i *_postgres_1 psql app_db app_user < *.sql
```# Play with it
go to http://0.0.0.0 or if you prefere the CLI
```
curl 0.0.0.0/actor -d id=miniRoom
curl 0.0.0.0/actor -d id=bigRoom
curl 0.0.0.0/actor -d id=tom
curl 0.0.0.0/actor -H 'Content-Type: application/json' --data '{"id":"u'$(date +%N)'","free":[['$(printf '0,%.0s' {1..23})'0]]}'
curl 0.0.0.0/piece -d id=hash -d roles='{"romeo":["tom","tim"],"juliette":["eva","mia"]}'
curl 0.0.0.0/piece -d id=list -d roles='[["romeo","tom"],["juliette","eva"]]'
curl 0.0.0.0/piece -d id=hash -d roles='{"romeo":"tom","juliette":"eva"}'
curl 0.0.0.0/piece -H 'Content-Type: application/json' --data '{"id":"hash","roles":{"romeo":["tom","tim"],"juliette":["eva","mia"]}}'
curl 0.0.0.0/play -d piece_id=macbeth -d date=12/12/2012 -d time=23:00 -d actors='{"macbeth":"toto","fool":"romeo"}'{'romeo':'tom','juliette':'eva'}
[['romeo','tom'],['juliette','eva']]
{'romeo':['tom','tim'],'juliette':['eva','mia']}```
eq, =
gte, >=
gt, >
lte, <=
lt, <
neq, <>
like, LIKE
ilike, ILIKE
in, IN
is, IS
// array
cs, @>
cd, <@
// array+range
ov, &&
// range
sl, <<
sr, >>
nxr, &<
nxl, &>
adj, -|-