source: README.md

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

Updated readme and database

  • Property mode set to 100644
File size: 1.3 KB
Line 
1# Caessino
2
3Firstly, create a .env file in the project's root directory and populate it like so:
4
5 HOME_URL="http://localhost:3000"
6 POSTGRES_HOST="db"
7 POSTGRES_USER="postgres"
8 POSTGRES_PASSWORD="postgres"
9 POSTGRES_DB="postgres"
10 GOOGLE_EMAIL="YOUR_GOOGLE_EMAIL"
11 GOOGLE_APP_PASSWORD="YOUR_GOOGLE_APP_PASSWORD"
12 GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID_OAUTH2
13 GOOGLE_CLIENT_SECRET=YOUR_GOOGLE_CLIENT_SECRET_OAUTH2
14 NEXT_SECRET="S0s2l3jzcxVw93sS0s2l3j"
15 NEXTAUTH_URL="http://localhost:3000/api/auth/"
16
17
18Now, in your console, navigate to the project's root directory and run:
19
20 docker-compose up
21
22
23===========================================================================
24
25If you are configuring this project for the first time, do the following, in order to set up the database.
26
27-- Note: The containers should be running in the background! (previously started with docker-compose up)
28
29Open another console and run:
30
31 docker exec -it NAME_OF_DATABASE_CONTAINER /bin/bash
32 psql -U postgres postgres `<` /usr/local/app/caessino.sql
33
34-- Note: When inserting `<`, it should not be surrounded by quotation marks
35
36===========================================================================
37
38Now you are all set up.
39
40Enjoy your stay at Caessino.
Note: See TracBrowser for help on using the repository browser.