Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ehasa-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WIMMA Lab 2019
Overflow
ehasa-backend
Commits
78cae80f
Commit
78cae80f
authored
5 years ago
by
L4168
Browse files
Options
Downloads
Patches
Plain Diff
updated readme instructions
parent
e8292bd8
No related branches found
No related tags found
2 merge requests
!59
Development to master
,
!10
Gamecreation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+30
-3
30 additions, 3 deletions
README.md
with
30 additions
and
3 deletions
README.md
+
30
−
3
View file @
78cae80f
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment