preapring for rls
This commit is contained in:
33
README.md
Normal file
33
README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
first things
|
||||
|
||||
`cp .env.example .env`
|
||||
|
||||
fill with for example: f0ckm
|
||||
|
||||
`cp config_example.json config.json`
|
||||
|
||||
Edit to needs, for sql you can do this:
|
||||
|
||||
host can either be localhost or the docker containers hostname, when running via docker this must be the dockers hostname
|
||||
|
||||
```
|
||||
"sql": {
|
||||
"host": "f0ckm-db",
|
||||
"port": 5432,
|
||||
"user": "f0ckm",
|
||||
"password": "f0ckm",
|
||||
"database": "f0ckm",
|
||||
"multipleStatements": true,
|
||||
"max": 50
|
||||
},
|
||||
```
|
||||
|
||||
`docker compose up -d`
|
||||
|
||||
`docker exec -i f0ckm-db psql -U f0ckm -d f0ckm < migrations/f0ckm_schema.sql`
|
||||
|
||||
`docker exec -t f0ckm node scripts/seed.mjs`
|
||||
|
||||
`docker exec -t f0ckm node scripts/create-admin.mjs admin [PASSWORD]`
|
||||
|
||||
now vist http://localhost:1337 in your browser
|
||||
Reference in New Issue
Block a user