https://github.com/pytal/across-the-stack
Across the Stack
https://github.com/pytal/across-the-stack
Last synced: 2 months ago
JSON representation
Across the Stack
- Host: GitHub
- URL: https://github.com/pytal/across-the-stack
- Owner: Pytal
- Created: 2020-10-26T18:12:06.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-29T01:51:19.000Z (over 5 years ago)
- Last Synced: 2025-04-13T19:09:23.341Z (12 months ago)
- Language: PLpgSQL
- Homepage:
- Size: 700 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Across the Stack
Check it out at https://across-the-stack.vercel.app
## High-level Planning
- [x] Spin up a Postgres Docker container
- [x] Load the [Pagila](https://github.com/devrimgunduz/pagila) sample dataset
- [x] Spin up a [PostgREST](https://github.com/PostgREST/postgrest) container
- [x] Configure anonymous (read) and trusted (read, write) roles
- [x] Deploy backend on an AWS EC2 instance
- [x] Test read/write on actor/film tables
- [x] Implement Next.js web app with the following pages:
- [x] Table view page
- [x] Pagination
- [x] Insert form page
- [x] Use CI/CD to deploy frontend to Vercel
## API Examples
The http request examples below use [`httpie`](https://github.com/httpie/httpie), though you may opt to use `curl` or `wget`.
Get films
```bash
http https://across.terse.live/film \
order==last_update.desc \
| npx -q fx
```
Insert film
```bash
MYTOKEN= \
http POST https://across.terse.live/film \
Authorization:"Bearer $MYTOKEN" \
title="Inception" \
description="Some trippy Chris Nolan movie about dreams" \
release_year:=2010 \
length:=148 \
rating="PG-13" \
language_id:=1
```