https://github.com/flaviuvadan/fortune
A fun web server to obtain Unix fortune messages
https://github.com/flaviuvadan/fortune
Last synced: 3 months ago
JSON representation
A fun web server to obtain Unix fortune messages
- Host: GitHub
- URL: https://github.com/flaviuvadan/fortune
- Owner: flaviuvadan
- License: mit
- Created: 2020-03-27T00:03:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-27T01:11:42.000Z (about 5 years ago)
- Last Synced: 2025-01-15T01:56:01.438Z (5 months ago)
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fortune
A web server to obtain Unix fortune messages (for fun)!## Building and running
You can build this project using Docker:
```
docker built -t fortune:latest .
docker run -p 8080:8080 fortune:latest
```You can also build this without Docker:
```
go build
go run main.go
```You can try hitting the server once it's running using any of the following:
```
curl 'http://127.0.0.1:8080/'
curl 'http://127.0.0.1:8080/cookie'
curl 'http://127.0.0.1:8080/offensive-cookie'
```## Testing
Honestly, not much to test, but you could run tests using:
```
go test
```