Skip to content
Snippets Groups Projects

Gamecreation

Merged Ghost User requested to merge gamecreation into Development
1 file
+ 30
3
Compare changes
  • Side-by-side
  • Inline
+ 30
3
@@ -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
Loading