source: README.md@ 189cd8f

main
Last change on this file since 189cd8f was fe03f69, checked in by anastasovv <simon@…>, 2 years ago

Newlines in readme

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[87614a5]1# Caessino
[6568bde]2
[87614a5]3Firstly, create a .env file in the project's root directory and populate it like so:
[6568bde]4
[b4369c8]5 HOME_URL="http://localhost:3000"
6 POSTGRES_HOST="db"
7 POSTGRES_USER="postgres"
8 POSTGRES_PASSWORD="postgres"
9 POSTGRES_DB="postgres"
[6568bde]10
11
[87614a5]12Now, in your console, navigate to the project's root directory and run:
[6568bde]13
[b4369c8]14 docker-compose up
[6568bde]15
16
[0af535a]17===========================================================================
[fe03f69]18
[0af535a]19If you are configuring this project for the first time, do the following, in order to set up the database.
[6568bde]20
[b4369c8]21-- Note: The containers should be running in the background! (previously started with docker-compose up)
[6568bde]22
[87614a5]23Open another console and run:
[6568bde]24
[b4369c8]25 docker exec -it name_of_db_container /bin/bash
26 psql -U postgres postgres `<` /usr/local/app/dummy_database.sql
[6568bde]27
[b4369c8]28-- Note: When inserting `<`, it should not be surrounded by quotation marks
[fe03f69]29
[0af535a]30===========================================================================
[6568bde]31
[87614a5]32Now you are all set up.
[6568bde]33
[64dc53b]34Enjoy your stay at Caessino.
Note: See TracBrowser for help on using the repository browser.