readme: update readme

Signed-off-by: Max R. Carrara <max@aequito.sh>
This commit is contained in:
Max R. Carrara 2025-08-16 15:04:06 +02:00
parent 2dd01b94a0
commit 68e940986d

View file

@ -1,29 +1,43 @@
# wien_talks_server # wien_talks_server
This is the starting point for your Serverpod server. ## Local Development Environment
To run your server, you first need to start Postgres and Redis. It's easiest to do with Docker. Setting up a local postgres container, run the following:
docker compose up --build --detach ```bash
make local
```
Then you can start the Serverpod server. This will first create an `.env` file with default values and then launch the
container.
You can then launch the Serverpod server like so:
```bash
dart bin/main.dart dart bin/main.dart
```
When you are finished, you can shut down Serverpod with `Ctrl-C`, then stop Postgres and Redis. If your database schema isn't initialized yet, you will have to run the
following:
docker compose stop ```bash
dart bin/main.dart --apply-migrations
```
## Environments & Passwords See the `Makefile` for all targets.
Note that the password used in your environment files (`.env` for local ## Passwords
development and `env.d/postgres.env.template` for deployment) must correspond to
the password in `config/passwords.yaml`.
The `config/passwords.yaml` file must be created manually, for example: The password used in your environment files (`.env` for local development and
`env.d/postgres.env.template` for deployment) must correspond to the password in
`config/passwords.yaml`.
The `config/passwords.yaml` file must be created manually at the moment; for
example:
```yaml ```yaml
development: development:
database: your-password-here database: your-password-here
``` ```