Skip to content

JC1738/go-react-seed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Reactjs seed

A seed project for making isomorphic or universal Reactjs applications with a Golang backend.

Rendering on the Golang side is made with V8. See https://github.com/jelinden/selfjs (thank you https://github.com/nmerouze/selfjs) and https://github.com/ry/v8worker.

Echo as a server

As a server we are using echo (https://github.com/labstack/echo), which is super fast, easy to use, and easily extensible framework. As an example to extensibility, there is a log middleware which logs access log to it's own log file. Also checking rights for admin user is checked with an own middleware.

Redis as database

As a database we are using Redis for both sessions and users. Sessions are saved for 4 weeks while users are saved with no expiration.

On mac, run brew install redis

on Debian

http://vvv.tobiassjosten.net/linux/installing-redis-on-ubuntu-with-apt/

Running

cd $GOPATH

go get github.com/jelinden/go-react-seed

cd src/github.com/jelinden/go-react-seed

npm install

and

npm run build && go build && ./go-react-seed

or

bash start-app.sh

TODO

  • Assets versioning
  • Member page is not informational to others than admin user, don't show it to others
  • Forgot my password functionality
  • Running with Raspberry pi
  • Verification of new user with email
  • Update to React 0.14

About

A seed project for making isomorphic or universal Reactjs applications with a Golang backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 45.4%
  • JavaScript 45.0%
  • CSS 9.2%
  • Shell 0.4%