source:
README.md@
41d3f60
Last change on this file since 41d3f60 was 41d3f60, checked in by , 2 years ago | |
---|---|
|
|
File size: 1.3 KB |
Rev | Line | |
---|---|---|
[87614a5] | 1 | # Caessino |
[6568bde] | 2 | |
[87614a5] | 3 | Firstly, 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" | |
[41d3f60] | 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/" | |
[6568bde] | 16 | |
17 | ||
[87614a5] | 18 | Now, in your console, navigate to the project's root directory and run: |
[6568bde] | 19 | |
[b4369c8] | 20 | docker-compose up |
[6568bde] | 21 | |
22 | ||
[0af535a] | 23 | =========================================================================== |
[fe03f69] | 24 | |
[0af535a] | 25 | If you are configuring this project for the first time, do the following, in order to set up the database. |
[6568bde] | 26 | |
[b4369c8] | 27 | -- Note: The containers should be running in the background! (previously started with docker-compose up) |
[6568bde] | 28 | |
[87614a5] | 29 | Open another console and run: |
[6568bde] | 30 | |
[41d3f60] | 31 | docker exec -it NAME_OF_DATABASE_CONTAINER /bin/bash |
32 | psql -U postgres postgres `<` /usr/local/app/caessino.sql | |
[6568bde] | 33 | |
[b4369c8] | 34 | -- Note: When inserting `<`, it should not be surrounded by quotation marks |
[fe03f69] | 35 | |
[0af535a] | 36 | =========================================================================== |
[6568bde] | 37 | |
[87614a5] | 38 | Now you are all set up. |
[6568bde] | 39 | |
[64dc53b] | 40 | Enjoy your stay at Caessino. |
Note:
See TracBrowser
for help on using the repository browser.