Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 785 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 785 Bytes

tinydictionary

Small, fake RESTful server that can scale and handle large load. Primarily for load testing.

Getting Started

Install GO

wget https://raw.githubusercontent.com/hobbitcakes/tinydictionary/master/install_go.sh
bash install_go.sh

Prerequisites

This project uses the Gin framework

go get github.com/gin-gonic/gin

Build the server binary

go build tinydictionary.go

Run the server

./tinydictionary& 

Execute a GET

curl -XGET http://[server:port]/version

Execute a POST

Create a 1 gb file

dd if=/dev/zero of=/tmp/file.txt count=1024000 bs=1024

POST the file to the running server

curl -X POST -F "file=@/tmp/file.txt" -H "Content-Type: multipart/form-data" http://[server:port]/dinosaurs