File tree Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ test_create_api_results.txt
2
+ test_list_api_results.txt
3
+ test_update_api_results.txt
4
+
5
+ .env.example
6
+
7
+ .git
8
+ .gitignore
9
+
10
+ .dockerignore
11
+ Dockerfile
12
+
13
+ README.md
Original file line number Diff line number Diff line change 1
1
# Ignore private key json file
2
2
cs3219-g24-firebase-adminsdk-9cm7h-b1675603ab.json
3
+ cs3219-g24-staging-firebase-adminsdk-suafv-9c0d1b2299.json
3
4
test_create_api_results.txt
4
5
test_list_api_results.txt
5
6
test_update_api_results.txt
Original file line number Diff line number Diff line change
1
+ FROM golang:1.23
2
+
3
+ WORKDIR /usr/src/app
4
+
5
+ # pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
6
+ COPY go.mod go.sum ./
7
+ RUN go mod tidy && go mod download && go mod verify
8
+
9
+ COPY . .
10
+
11
+ RUN go build -v -o /usr/local/bin/app ./main.go
12
+
13
+ EXPOSE 8080
14
+
15
+ CMD ["app" ]
Original file line number Diff line number Diff line change @@ -49,6 +49,20 @@ go run main.go
49
49
50
50
The server will be available at http://localhost:8080 .
51
51
52
+ ## Running the Application via Docker
53
+
54
+ To run the application via Docker, run the following command:
55
+
56
+ ``` bash
57
+ docker build -t question-service .
58
+ ```
59
+
60
+ ``` bash
61
+ docker run -p 8080:8080 -d question-service
62
+ ```
63
+
64
+ The server will be available at http://localhost:8080 .
65
+
52
66
## API Endpoints
53
67
54
68
- ` POST /questions `
You can’t perform that action at this time.
0 commit comments