-
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
Showing
11 changed files
with
13,350 additions
and
9,144 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 |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
*.so | ||
*.dylib | ||
|
||
.yarn/ | ||
.yarnrc.yml | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
|
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,20 @@ | ||
# Use the official Node.js image as a base | ||
FROM node:14 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy package.json and package-lock.json to the container | ||
COPY package*.json ./ | ||
|
||
# Install app dependencies | ||
RUN npm install | ||
|
||
# Copy all the app files to the container | ||
COPY . . | ||
|
||
# Expose the app's port | ||
EXPOSE 3000 | ||
|
||
# Start the app | ||
CMD ["npm", "start"] |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: "3" | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
environment: | ||
POSTGRES_DB: admin | ||
POSTGRES_USER: admin | ||
POSTGRES_PASSWORD: test | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- postgres_data:/var/lib/postgresql/data | ||
|
||
react-app: | ||
build: | ||
context: ./client | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- go-server | ||
|
||
go-server: | ||
build: | ||
context: ./go-server | ||
ports: | ||
- "8080:8080" | ||
depends_on: | ||
- postgres | ||
|
||
volumes: | ||
postgres_data: |
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,17 @@ | ||
# Use the official Golang image as a base | ||
FROM golang:1.17 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy the source code into the container | ||
COPY . . | ||
|
||
# Build the Golang application | ||
RUN go build -o main . | ||
|
||
# Expose the server's port | ||
EXPOSE 8080 | ||
|
||
# Start the server | ||
CMD ["./main"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.