├── .dockerignore ├── .gitignore ├── Dockerfile ├── Makefile ├── README.md ├── app ├── count.bash ├── create.bash ├── find.bash ├── handler.bash ├── not-found.bash └── search.bash ├── docker-compose-prod.yml ├── docker-compose.yml ├── init.sql ├── netcat.bash ├── nginx.conf └── views ├── 201.http ├── 400.http ├── 404.htmlr ├── 422.http ├── count.textr ├── find-not-found.jsonr ├── find.jsonr ├── search-no-results.jsonr └── search.jsonr /.dockerignore: -------------------------------------------------------------------------------- 1 | stress-test 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | stress-test 2 | response 3 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/Dockerfile -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/README.md -------------------------------------------------------------------------------- /app/count.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/app/count.bash -------------------------------------------------------------------------------- /app/create.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/app/create.bash -------------------------------------------------------------------------------- /app/find.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/app/find.bash -------------------------------------------------------------------------------- /app/handler.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/app/handler.bash -------------------------------------------------------------------------------- /app/not-found.bash: -------------------------------------------------------------------------------- 1 | function handle_not_found() { 2 | RESPONSE=$(cat views/404.htmlr) 3 | } 4 | -------------------------------------------------------------------------------- /app/search.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/app/search.bash -------------------------------------------------------------------------------- /docker-compose-prod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/docker-compose-prod.yml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/init.sql -------------------------------------------------------------------------------- /netcat.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/netcat.bash -------------------------------------------------------------------------------- /nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/nginx.conf -------------------------------------------------------------------------------- /views/201.http: -------------------------------------------------------------------------------- 1 | HTTP/1.1 201 Created 2 | Location: /pessoas/{{uuid}} 3 | 4 | "" 5 | -------------------------------------------------------------------------------- /views/400.http: -------------------------------------------------------------------------------- 1 | HTTP/1.1 400 Bad Request 2 | 3 | "" 4 | -------------------------------------------------------------------------------- /views/404.htmlr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leandronsp/rinha-backend-bash/HEAD/views/404.htmlr -------------------------------------------------------------------------------- /views/422.http: -------------------------------------------------------------------------------- 1 | HTTP/1.1 422 Unprocessable Content 2 | 3 | "" 4 | -------------------------------------------------------------------------------- /views/count.textr: -------------------------------------------------------------------------------- 1 | HTTP/1.1 200 2 | Content-Type: text/plain 3 | 4 | {{count}} 5 | -------------------------------------------------------------------------------- /views/find-not-found.jsonr: -------------------------------------------------------------------------------- 1 | HTTP/1.1 200 2 | Content-Type: application/json 3 | 4 | {} 5 | -------------------------------------------------------------------------------- /views/find.jsonr: -------------------------------------------------------------------------------- 1 | HTTP/1.1 200 2 | Content-Type: application/json 3 | 4 | {{data}} 5 | -------------------------------------------------------------------------------- /views/search-no-results.jsonr: -------------------------------------------------------------------------------- 1 | HTTP/1.1 200 2 | Content-Type: application/json 3 | 4 | [] 5 | -------------------------------------------------------------------------------- /views/search.jsonr: -------------------------------------------------------------------------------- 1 | HTTP/1.1 200 2 | Content-Type: application/json 3 | 4 | {{data}} 5 | --------------------------------------------------------------------------------