Skip to content

luizcarlosfaria/RESTheart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

RESTHEART

The Web API for MongoDB

This is a premade stack designed to reduce friction on adopt MongoDB with RESTHeart.

Releases and Release Notes

Latest release GitHub Release Date

All releases

Stack Services

  • MongoDB (without authentication)
  • RESTHeart

Configuration

--git@github.com:docker-gallery/RESTheart.git
 |--docker-compose.yml (1)
 |--readme.md
 |--restheart 
    |--config
       |--restheart.yml (2)
       |--security.yml (3)

1 - docker-compose.yml

Docker Compose file used do declare configurations about both services (restheart and mongodb).

2 - restheart.yml

Used to configure RESTHeart.

Take a look at line 69: mongo-uri: mongodb://mongodb defines a connectionstring to work with mongodb.

3 - security.yml

Used to configure authentication and authorization on RESTHeart, by default i've produced some rules, like:

  • Anonymus Uses can only read the publicdb database data (only if you create the database with name publicdb).
  • User admin user has password admin, they has admins role and can do everything.
  • User user user has password user, they has users role and can do everything only on publicdb.

Get Started

  • On any docker environment
  • There we go! ` Run
git clone https://github.com/docker-gallery/RESTheart.git
cd ./RESTheart
docker-compose up

Just it.

Read More

Wiki

Using API by Examples