mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 12:49:43 +02:00
c add dev documentation and local db server
This commit is contained in:
parent
328aa63f6e
commit
9da5a0c91e
2 changed files with 27 additions and 1 deletions
11
README.md
11
README.md
|
@ -56,7 +56,16 @@ cd planka
|
|||
npm install
|
||||
```
|
||||
|
||||
Create a database and edit `DATABASE_URL` in `.env` file. Then initialize it:
|
||||
Either use a local db or start the provided development db: `docker-compose -f docker-compose-dev.yml up`
|
||||
|
||||
Create a db user by first logging into the db `psql -U postgres -h localhost` and then:
|
||||
|
||||
```
|
||||
create user [username]; --create a role for your local username
|
||||
grant postgres to [username]; --grant all privileges to this user
|
||||
```
|
||||
|
||||
Finally, create a database and edit `DATABASE_URL` in `.env` file. Then initialize it:
|
||||
|
||||
```
|
||||
npm run server:db:init
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue