Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/selfup/gocrashttp

Small mutex locked cache store server
https://github.com/selfup/gocrashttp

Last synced: about 1 month ago
JSON representation

Small mutex locked cache store server

Awesome Lists containing this project

README

        

# GoCrasHttp

Small Golang expirement :smile:

Currently up as an [alpine container on heroku](https://gocrashttp.herokuapp.com/)

## Docker

Only use Docker to build the image if using containerization technologies like:

1. Docker Swarm
2. Kubernetes (k8s)
3. Google Container Platform
4. Heroku (ex: `heroku container:push web --app `)
5. AWS/Azure Container Solutions (Ex: Fargate)
6. A VPS with only Docker as a dependency (Digital Ocean/Linode box)

The image for production is using Alpine Linux.

Very small so no need to worry about bandwith.

Build times are very fast, even from scratch!

## Development

Use a local Go install to develop this software.

### Get **Gin** and **GoConvey** for dev:

**Linux**:
```
go get github.com/codegangsta/gin \
&& go get github.com/smartystreets/goconvey \
&& source ~/.bashrc
```

**macOS**:
```
go get github.com/codegangsta/gin \
&& go get github.com/smartystreets/goconvey \
&& source ~/.bash_profile
```

### Use **Gin** for dev:

```
./scripts/dev.sh
```

OR

```
gin run main.go
```

### Use **Convey** for dev:

Open a new pane/tab in your terminal and just run `$GOPATH/bin/goconvey`

This will watch your files, run tests on save, and display really good information about your tests on http://127.0.0.1:8080

_Refer to the `./scripts` dir for other tasks that can be run_