Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/selfup/gocrashttp
- Owner: selfup
- License: mit
- Created: 2017-10-04T21:28:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-07T04:35:10.000Z (over 5 years ago)
- Last Synced: 2024-10-20T07:37:11.167Z (3 months ago)
- Language: Go
- Homepage:
- Size: 6.75 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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_