commit 0a1cd0d01763fdcbb2d2b84aec20f4387a3ca98e
parent d1ef61f708f8108bc5c3e8b2b2b68615328d9a7c
Author: Silas Brack <silasbrack@gmail.com>
Date: Thu, 3 Oct 2024 15:20:51 +0200
Clean up READMEs
Diffstat:
5 files changed, 16 insertions(+), 108 deletions(-)
diff --git a/apps/my-app/README.md b/apps/my-app/README.md
@@ -0,0 +1,16 @@
+# My App
+
+## Migrations
+
+Set environment variable `PGPASSWORD`
+```
+LATEST_VERSION = $(psql -U ${PGUSER} -h ${PGHOST} -p ${PGPORT} -d ${PGDATABASE} --set=sslmode=verify-full -AXqtc 'SELECT MAX(version) FROM migrations;')
+LATEST_VERSION = ${LATEST_VERSION:-0}
+MAX_VERSION = $( ls ./migrations/ | sort -n | tail -1 | xargs -I _ basename _ .sql | xargs -I _ echo $(( _ )) )
+for VERSION in $(seq -f "%04g" $LATEST_VERSION $MAX_VERSION)
+do
+ psql -U ${PGUSER} -h ${PGHOST} -p ${PGPORT} -d ${PGDATABASE} --set=sslmode=verify-full -a -f migrations/$VERSION.sql
+ psql -U ${PGUSER} -h ${PGHOST} -p ${PGPORT} -d ${PGDATABASE} --set=sslmode=verify-full -a -c 'INSERT INTO migrations (version) VALUES ('$(( $VERSION ))');'
+done
+```
+
diff --git a/apps/my-app/client/README.md b/apps/my-app/client/README.md
@@ -1,25 +0,0 @@
-# client
-
-[](https://hex.pm/packages/client)
-[](https://hexdocs.pm/client/)
-
-```sh
-gleam add client
-```
-```gleam
-import client
-
-pub fn main() {
- // TODO: An example of the project in use
-}
-```
-
-Further documentation can be found at <https://hexdocs.pm/client>.
-
-## Development
-
-```sh
-gleam run # Run the project
-gleam test # Run the tests
-gleam shell # Run an Erlang shell
-```
diff --git a/apps/my-app/server/README.md b/apps/my-app/server/README.md
@@ -1,39 +0,0 @@
-# test_pgo
-
-[](https://hex.pm/packages/test_pgo)
-[](https://hexdocs.pm/test_pgo/)
-
-```sh
-gleam add test_pgo@1
-```
-```gleam
-import test_pgo
-
-pub fn main() {
- // TODO: An example of the project in use
-}
-```
-
-Further documentation can be found at <https://hexdocs.pm/test_pgo>.
-
-## Development
-
-```sh
-gleam run # Run the project
-gleam test # Run the tests
-```
-
-## Migrations
-
-Set environment variable `PGPASSWORD`
-```
-LATEST_VERSION = $(psql -U ${PGUSER} -h ${PGHOST} -p ${PGPORT} -d ${PGDATABASE} --set=sslmode=verify-full -AXqtc 'SELECT MAX(version) FROM migrations;')
-LATEST_VERSION = ${LATEST_VERSION:-0}
-MAX_VERSION = $( ls ./migrations/ | sort -n | tail -1 | xargs -I _ basename _ .sql | xargs -I _ echo $(( _ )) )
-for VERSION in $(seq -f "%04g" $LATEST_VERSION $MAX_VERSION)
-do
- psql -U ${PGUSER} -h ${PGHOST} -p ${PGPORT} -d ${PGDATABASE} --set=sslmode=verify-full -a -f migrations/$VERSION.sql
- psql -U ${PGUSER} -h ${PGHOST} -p ${PGPORT} -d ${PGDATABASE} --set=sslmode=verify-full -a -c 'INSERT INTO migrations (version) VALUES ('$(( $VERSION ))');'
-done
-```
-
diff --git a/apps/my-app/shared/README.md b/apps/my-app/shared/README.md
@@ -1,25 +0,0 @@
-# shared
-
-[](https://hex.pm/packages/shared)
-[](https://hexdocs.pm/shared/)
-
-```sh
-gleam add shared
-```
-```gleam
-import shared
-
-pub fn main() {
- // TODO: An example of the project in use
-}
-```
-
-Further documentation can be found at <https://hexdocs.pm/shared>.
-
-## Development
-
-```sh
-gleam run # Run the project
-gleam test # Run the tests
-gleam shell # Run an Erlang shell
-```
diff --git a/infrastructure/README.md b/infrastructure/README.md
@@ -1,19 +0,0 @@
-# My Project
-
-## NixOS Deployment
-- Read Justinas' guide ([part 1](https://justinas.org/nixos-in-the-cloud-step-by-step-part-1) and [part 2](https://justinas.org/nixos-in-the-cloud-step-by-step-part-2))
-
-## Tools
-- Go
-- Postgres (RDS)
-- S3
-- EC2
-- HTMX
-- Docker
-
-## Philosophy
-- Radical simplicity
-- Local first
-- Minimise compile time
-- Minimise dependencies
-