mirror of https://github.com/gabehf/trivia-api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| server | 2 years ago | |
| trivia | 2 years ago | |
| Dockerfile | 2 years ago | |
| README.md | 2 years ago | |
| go.mod | 2 years ago | |
| go.sum | 2 years ago | |
| main.go | 2 years ago | |
| trivia.json | 2 years ago | |
README.md
Stateless, Containerized Trivia API
This project has a blog post going through the development process. Read the post here: https://mnrva.dev/posts/stateless-containerized-trivia-api-go
Running the server
Copy the repo
git clone git@github.com:gabehf/trivia-api.git
Then, run the server using Go
cd trivia-api
go run .
Or, build the docker image and run that
docker build --tag trivia-api .
Then,
docker run -p 3000:3000 trivia-api