diff --git a/README.md b/README.md index 2fb33434..32c05b3b 100644 --- a/README.md +++ b/README.md @@ -56,16 +56,13 @@ cd planka npm install ``` -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: +Either use a local database or start the provided development database: ``` -create user [username]; --create a role for your local username -grant postgres to [username]; --grant all privileges to this user +docker-compose -f docker-compose-dev.yml up ``` -Finally, create a database and edit `DATABASE_URL` in `.env` file. Then initialize it: +Edit `DATABASE_URL` in `.env` file if needed, then initialize the database: ``` npm run server:db:init diff --git a/server/.env b/server/.env index c4016084..cca5da54 100644 --- a/server/.env +++ b/server/.env @@ -1,4 +1,4 @@ TZ=UTC BASE_URL=http://localhost:1337 -DATABASE_URL=postgresql://localhost/planka +DATABASE_URL=postgresql://postgres@localhost/planka SECRET_KEY=notsecretkey