source: README.md@ 64dc53b

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

Code cleanings

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