authexample

command module
v0.0.0-...-1ab98e6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: MIT Imports: 5 Imported by: 0

README

Auth tutorial

This is the example to the buffalo auth tutorial.

Installation

After cloning this repository you need to run:

npm install

To set the env variables the example uses setenv.

Install setenv:

go get -u github.com/as27/setenv

Go to GitHub settings and Register a new OAuth application.

Create a file named .env in the root directory of this repository. Add following lines to the file:

GITHUB_KEY=YOUR_KEY
GITHUB_SECRET=YOUR_SECRET

Starting the Application

Buffalo ships with a command that will watch your application and automatically rebuild the Go binary and any assets for you. To do that run the "buffalo dev" command:

$ buffalo dev

If you point your browser to http://localhost:3000 you should see a "Welcome to Buffalo!" page.

Congratulations! You now have your Buffalo application up and running.

What Next?

We recommend you heading over to http://gobuffalo.io and reviewing all of the great documentation there.

Good luck!

Powered by Buffalo

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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