mirror of
https://github.com/timokz/flutter-vienna-hackathon-25.git
synced 2025-11-08 21:24:20 +01:00
readme: update readme
Signed-off-by: Max R. Carrara <max@aequito.sh>
This commit is contained in:
parent
2dd01b94a0
commit
68e940986d
1 changed files with 26 additions and 12 deletions
|
|
@ -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.
|
||||||
|
|
||||||
dart bin/main.dart
|
You can then launch the Serverpod server like so:
|
||||||
|
|
||||||
When you are finished, you can shut down Serverpod with `Ctrl-C`, then stop Postgres and Redis.
|
```bash
|
||||||
|
dart bin/main.dart
|
||||||
|
```
|
||||||
|
|
||||||
docker compose stop
|
If your database schema isn't initialized yet, you will have to run the
|
||||||
|
following:
|
||||||
|
|
||||||
## Environments & Passwords
|
```bash
|
||||||
|
dart bin/main.dart --apply-migrations
|
||||||
|
```
|
||||||
|
|
||||||
Note that the password used in your environment files (`.env` for local
|
See the `Makefile` for all targets.
|
||||||
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:
|
## Passwords
|
||||||
|
|
||||||
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue