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

https://github.com/makevoid/try-hanami-api

Sample Hanami::API app - tries to show how easy it is to achieve a very performant API application with very little code.
https://github.com/makevoid/try-hanami-api

Last synced: 6 months ago
JSON representation

Sample Hanami::API app - tries to show how easy it is to achieve a very performant API application with very little code.

Awesome Lists containing this project

README

          

# Sample Hanami::API app

Shows how easy it is to achieve a very performant API application with very little code.

Features of this sample app:

- simple example, 3 routes (+ the seed route)
- API app
- DB: Redis / ReJSON (using [RedisRejson_models](https://github.com/makevoid/RedisRejson_models))

### Requirements

- ruby 2.7 installed (hanami-api requires it atm.)
- bundler gem installed (`gem i bundler`)
- redis with ReJSON module running

### Install

bundle

### Run

rake

then visit:

### Run with docker

This method will run Redis with Re-JSON by default

docker-compose up

then visit:

### Run only redis via docker

docker-compose up db

---

@makevoid