2023-09-26 17:32:55 +02:00
|
|
|
# This project was created using `create-beth-app`
|
2023-10-06 23:37:29 +02:00
|
|
|
|
2023-09-26 17:32:55 +02:00
|
|
|
## To open an issue: https://github.com/ethanniser/the-beth-stack
|
2023-10-06 23:37:29 +02:00
|
|
|
|
2023-09-26 17:32:55 +02:00
|
|
|
## To discuss: https://discord.gg/Z3yUtMfkwa
|
2023-09-12 17:58:44 +02:00
|
|
|
|
2023-09-26 17:39:30 +02:00
|
|
|
### To run locally:
|
2023-09-12 17:58:44 +02:00
|
|
|
|
2023-09-26 17:32:55 +02:00
|
|
|
1. `bun install`
|
|
|
|
2. create a new turso database with `turso db create <name>`
|
|
|
|
3. get the database url with `turso db show --url <name>`
|
|
|
|
4. get the auth token with `turso db tokens create <name>`
|
|
|
|
5. (optional) create a new github developer app and get credentials
|
|
|
|
6. copy `.env.example` to `.env`
|
|
|
|
7. fill out all enviorment variables (refer to the config file to see schema)
|
|
|
|
8. `bun db:push`
|
|
|
|
9. `bun dev`
|
2023-09-12 17:58:44 +02:00
|
|
|
|
2023-09-26 17:39:30 +02:00
|
|
|
### To deploy to fly.io
|
|
|
|
|
|
|
|
1. Install the [Fly CLI](https://fly.io/docs/hands-on/install-flyctl/)
|
|
|
|
|
|
|
|
2. Run `fly launch`
|
|
|
|
|
|
|
|
3. Run `fly secrets set <NAME>=<VALUE>` (probably want to set `NODE_ENV` to `"production"`)
|
|
|
|
|
2023-10-06 23:37:29 +02:00
|
|
|
4. Run `fly deploy`
|