-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
77 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dotenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
Frontend start command | ||
# Setup | ||
|
||
* Install [docker](https://docs.docker.com/engine/install/) | ||
* Define necessary env variables | ||
``` | ||
POSTGRES_PASSWORD=MAKE_UP_SOMETHING_RANDOM | ||
POSTGRES_USER=labdao | ||
POSTGRES_DB=labdao | ||
POSTGRES_HOST=localhost | ||
``` | ||
* Recommended: Install [direnv](https://direnv.net/). With it installed you can create `.env` file with the above environment variables and have them automagically set when you descend into the folder. | ||
|
||
# Start the database | ||
|
||
``` | ||
docker compose up -d | ||
``` | ||
|
||
Note: New docker installation include docker compose, older installations required you install docker-compose separately and run `docker-compose up -d` | ||
|
||
# Frontend start command | ||
|
||
from ./gateway/frontend | ||
```npm run dev``` | ||
``` | ||
npm run dev | ||
``` | ||
|
||
Backend start command | ||
# Backend start command | ||
|
||
from ./gateway | ||
```go run app.go``` | ||
``` | ||
go run app.go | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: "3.7" | ||
|
||
services: | ||
db: | ||
image: "postgres:15.4" | ||
environment: | ||
POSTGRES_PASSWORD: | ||
POSTGRES_USER: | ||
POSTGRES_DB: | ||
POSTGRES_HOST: | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- type: volume | ||
source: dbdata | ||
target: /var/lib/postgresql/data | ||
|
||
volumes: | ||
dbdata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters