Skip to content
Snippets Groups Projects
Commit 78cae80f authored by L4168's avatar L4168
Browse files

updated readme instructions

parent e8292bd8
No related branches found
No related tags found
2 merge requests!59Development to master,!10Gamecreation
...@@ -38,10 +38,37 @@ Name .env.example to .env and ormconfig.json.example to ormconfig.json and add v ...@@ -38,10 +38,37 @@ Name .env.example to .env and ormconfig.json.example to ormconfig.json and add v
**.env names are case sensitive!** **.env names are case sensitive!**
Needed postgresql modules: **Configuring a database with Docker for this application:**
```bash ```bash
# Inside the database that you're connecting to: # first run
CREATE EXTENSION "uuid-ossp"; docker run --name postgis -p 5432:5432 -d -v /home/postgres:/var/lib/postgresql/data mdillon/postgis
# stopping the container
docker stop postgis
# starting the container
docker start postgis
# you can also have the container boot on computer startup with --restart option
--restart=always
# for example:
docker run --name postgis -p 5432:5432 -d -v /home/postgres:/var/lib/postgresql/data --restart=always mdillon/postgis
# starting bash inside the container
docker exec -it postgis bash
# connecting to the postgis service inside docker
psql -U postgres
# Inside the database:
# Creating database
create database ehasa;
# Connect to created database
\c ehasa;
# Create user for database
create user ehasa
alter user ehasa with encrypted password 'salasana';
# Give privileges to use database
grant all privileges on database ehasa to ehasa;
# Needed extensions
create extension "uuid-ossp";
# exit postgis
\q
``` ```
## Running the app ## Running the app
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment