Skip to content

laurent22/ripple-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo demo for Ripple

This is a todo demo for Ripple, the REST API framework for Go.

The demo creates a SQLlite database and defines two controllers:

controllers/users.go
controllers/todos.go

and one model:

models/todo.go    

The front end itself is a JS application that fetches, creates and deletes tasks.

Installation

git clone https://github.com/laurent22/ripple-demo.git
git submodule init
git submodule update

Running the demo

go run main.go

The front-end application will then be at http://localhost:8080/app/

And the REST API itself is at http://localhost:8080/api/ and defines the following paths:

GET /users/:userId/todos
GET /todos
GET /todos/:todoId
POST /todos
PUT /todos/:todoId
DELETE /todos/:todoId

About

A demo application for Ripple, the REST API framework for Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages