An open API service indexing awesome lists of open source software.

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

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
```