ampersand-rethink-go

command module
v0.0.0-...-c347415 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

README

Ampersand-Rethink-Go

Simple REST API with AmpersandJS, Go, and RethinkDB.

Setup

Instal Ampersand.js and use the Ampersand.js CLI to generate a new app:

$ npm i -g ampersand
$ ampersand

It will generate a new app. Choose Hapi or Express as the server, it doesn't matter since this is the server you'll actually use.

Once you've generated the app, you need to tell the frontend to use http://localhost:8000 as the URL for the backend. To do that, go to config/default.json and change the value of apiUrl to the address above. Then, you can use you use this server.

To start this server you'll need Go and RethinkDB installed. Start RethinkDB, then in a different tab, run:

$ go run main.go

If that works, you're all set! Open your browser to http://localhost:3000/ to see it working.

If you need to check the contents of your DB, go to http://localhost:8080/ to view the RethinkDB admin panel.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL