Update README.md

This commit is contained in:
Dimitrie Stefanescu
2024-02-12 11:28:37 +00:00
committed by GitHub
parent 2879d8b4bd
commit 2f370afd45
+14 -2
View File
@@ -10,7 +10,7 @@ after the app and its dependencies have been started
This project is using [`pnpm`](https://pnpm.io/) as its package manager.
To start the required databases or other dependencies, run `docker compose up -d`
## about Postgres setup
## About Postgres setup
I had to change the `wal_level` on my local postgres instances
it is done with running the SQL command below, and restating the database server:
@@ -19,6 +19,8 @@ it is done with running the SQL command below, and restating the database server
ALTER SYSTEM SET wal_level = logical;
```
Note: Postgres subscriptions (which we use) in the same db server don't work that easily; easiest way to get things going is to set up multiple db servers locally.
## Project description
The app has these basic concepts:
@@ -47,4 +49,14 @@ When providing a connection url to a region, make sure to not include a database
A collection of users and an owner of resource. Any user may create organizations.
Organizations may be granted access to any given region. That action creates a new database in the region DB server. migrates it to the latest DB schema and sets up user and resource publish and subscribe mechanisms.
###
## Steps to flex this POC
Using the exposed graphql explorer, you can go ahead and
- create a user
- create an organisation
- add the user to the organisation
- create regions & associate them with an organisation
- create a resource in the default organisation, or for a specific organisation & region
- etc.