Skip to content

gesposito/nerd-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NERD API

A quick and expecially dirty example of running:

for serving a REST API server

Tweak your "Models"

Tables are autogenerated from /core/db/config.js i.e.:

tables: ['users', 'groups']

Run Docker Compose (d detach, it interactive)

docker-compose up -d

docker-compose up -it

Get your Docker VM's IP

docker-machine ip default

Connect to Express' API and RethinkDB's Web console

http://{docker-machine-ip}/ (port 80)

http://{docker-machine-ip}:8080/

CRUD endpoints

For every "Model" listed into /core/db/config.js you'll be able to make GET, POST, PUT, DELETE requests, i.e.

GET http://{docker-machine-ip}/users

References

https://rethinkdb.com/docs/examples/node-todo/

https://rethinkdb.com/docs/examples/

Releases

No releases published

Packages

No packages published