Modules, samples, and a skeleton for the Revel Framework
grunt:
sudo apt-get install nodejs npm ruby
sudo gem install sass
sudo npm install -g grunt-cli highlight.js
sudo npm install -g grunt-contrib-jshint grunt-contrib-concat grunt-contrib-uglify grunt-contrib-coffee grunt-markdown grunt-contrib-sass grunt-contrib-less
databases:
one of [postgres, mysql, sqlite]
go get
revel-modz
go get -u github.com/iassic/revel-modz
The following instructions will setup a new app from the revel-modz skeleton
revel new <APP_NAME> github.com/iassic/revel-modz/skeleton
cd <APP_NAME>
sh init.sh (hit ctrl-c when prompted) [you will see a bunch of errors initially]
cd ..
create a new database and update the db.spec in app.conf
revel run <APP_NAME>
now point your browser at localhost:9000
Front-end:
- Foundation 5.1.1
- Headjs for asynchronous loading of assets
- Many JS/CSS goodies in revel-modz/modules/assets
- Templated includes for per page assets
- A
appendjs
template function for inserting JS code
Back-end:
- JS/SASS app resources initialized in app/assets
- Hot Code watch and recompile of app/assets with Grunt
- ORM with github.com/jinzhu/gorm
Security:
- User Authentication
- CSRF protection
X-Frame-Options
X-XXS-Protection
andX-Content-Type-Options
headers
The skeleton includes everything
more samples coming soon