Skip to content

gtarcea/1DevDayTalk2014

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1DevDayTalk2014

Slides and code for my 1DevDay talk for 2014

Running

In order to run this software you will need to install:

  • Go
  • Godep (go get github.com/tools/godep)

Then you can type

make run

From your browser connect to http://localhost:8081.

You will be prompted for a username and password. These are hard coded in the system (see ws/rest/users/users.go login method) to:

  • Username: admin
  • Password: admin

Setup

RSA

This project comes with a set of RSA keys used for JWT token generation. The key files can be found in the config directory. To generate new keys do the following:

openssl genrsa -out app.rsa 1024
openssl rsa -in app.rsa -pubout > app.rsa.pub

Environment variables

The server depends on two environment variables. The Makefile sets these variables automatically when you do “make run”. The variables are:

  • DEVDAY_WEBDIR: Location of the website files
  • DEVDAY_CONFIG: Location of the config directory

Server Command Line

The server accepts two arguments: “–port” and “–bind” by default port is set to 8081, and bind is set to localhost.

Dependencies

All dependencies are included in the project.

The following web libraries/frameworks are used:

The Go dependencies are included under the Godeps directory. The following external Go packages are used:

  • code.google.com/p/go.net/websocket
  • github.com/dgrijalva/jwt-go
  • github.com/emicklei/go-restful
  • github.com/jessevdk/go-flags

About

Slides and code for my 1DevDay talk for 2014

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published