-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
04ded20
commit 2a4b75b
Showing
11 changed files
with
127 additions
and
14 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,24 @@ | ||
# Ignore Go temporary files | ||
**/*.test | ||
**/*_test.go | ||
**/*_test | ||
|
||
# Ignore TypeScript temporary files | ||
**/*.js | ||
**/*.map | ||
**/*.d.ts | ||
|
||
# Ignore temporary files for npm и yarn | ||
node_modules/ | ||
|
||
# Ignore dependencies files for go | ||
vendor/ | ||
|
||
# Ignore files, created by VS Code | ||
.vscode | ||
|
||
# Ignore local temporary files | ||
.DS_Store | ||
|
||
# Ignore files for CI/CD | ||
.github |
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,3 +1,5 @@ | ||
PORT=YOUR-SITE-PORT | ||
DB_URL=YOUR-DB-CONNECTION-URL | ||
RABBIT_MQ_URL=YOUR-RABBITMQ-CONNECTION-URL | ||
DB_URL=postgres://YOUR-LOGIN:YOUR-PASSWORD@localhost:5432/YOUR-DATABASE?sslmode=disable | ||
RABBIT_MQ_URL=amqp://guest:guest@localhost:5672/ | ||
POSTGRES_USER=YOUR-POSTGRES-USER | ||
POSTGRES_PASSWORD=YOUR-POSTGRES-PASSWORD | ||
POSTGRES_DB=YOUR-POSTGRES-DATABASE |
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,29 @@ | ||
FROM golang:1.21.1 AS builder | ||
|
||
WORKDIR /app | ||
|
||
COPY go.mod go.sum ./ | ||
|
||
RUN go mod download | ||
|
||
RUN go get -u github.com/pressly/goose/cmd/goose | ||
|
||
COPY . . | ||
|
||
RUN go build -o daee . | ||
|
||
FROM debian:buster | ||
|
||
COPY --from=builder /app/daee /usr/local/bin/daee | ||
|
||
EXPOSE 3000 | ||
|
||
COPY .env / | ||
|
||
RUN bash -c 'source /.env' | ||
|
||
COPY sql/schema /app/sql/schema | ||
|
||
RUN cd /app/sql/schema && goose postgres postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB} up | ||
|
||
CMD ["daee"] |
Binary file not shown.
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,34 @@ | ||
version: '3' | ||
|
||
services: | ||
postgres: | ||
image: postgres:latest | ||
environment: | ||
POSTGRES_USER: ${POSTGRES_USER} | ||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | ||
POSTGRES_DB: ${POSTGRES_DB} | ||
ports: | ||
- "5432:5432" | ||
|
||
rabbitmq: | ||
image: rabbitmq:latest | ||
ports: | ||
- "5672:5672" | ||
- "15672:15672" | ||
|
||
frontend: | ||
build: | ||
context: ./frontend | ||
dockerfile: Dockerfile | ||
ports: | ||
- "3000:3000" | ||
|
||
backend: | ||
build: | ||
context: ./backend | ||
dockerfile: Dockerfile | ||
ports: | ||
- "3000:3000" | ||
environment: | ||
DB_URL: ${DB_URL} | ||
RABBIT_MQ_URL: ${RABBIT_MQ_URL} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom/client' | ||
import App from './App.tsx' | ||
import { ToastContainer } from 'react-toastify'; | ||
import 'react-toastify/dist/ReactToastify.css'; | ||
|
||
ReactDOM.createRoot(document.getElementById('root')!).render( | ||
<React.StrictMode> | ||
<App /> | ||
<ToastContainer /> | ||
</React.StrictMode>, | ||
) |
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