Learn REVEL with Real Code Examples
Updated Nov 27, 2025
Installation Setup
Install Go toolchain on your system
Get Revel framework using `go get github.com/revel/revel`
Create new project using `revel new myapp`
Configure application settings in `app.conf`
Run local server using `revel run myapp`
Environment Setup
Install Go toolchain
Install Revel framework via `go get`
Create project with Revel CLI
Configure app.conf and database
Run server and verify local setup
Config Files
conf/app.conf - main configuration
conf/routes - URL routing
app/controllers/ - controllers
app/models/ - models/entities
app/views/ - templates
Cli Commands
revel new myapp - create new project
revel run myapp - start local server
revel build myapp - compile binary
Edit conf/routes - configure routes
Edit app/controllers/ - add controllers
Internationalization
Manual localization via template variables or libraries
UTF-8 support in templates and content
Locale selection handled in controllers
Custom messages for multiple languages
Integration with third-party i18n libraries if needed
Accessibility
Accessible via browser and API clients
Supports UTF-8 content and localization
Templates can include ARIA attributes
Forms and outputs can be made accessible
Testing possible via Go testing or external tools
Ui Styling
Revel templates for HTML rendering
Integrate CSS frameworks like Bootstrap or Tailwind
Include frontend JS as needed
Partial templates and layouts supported
Optional integration with frontend frameworks
State Management
Models manage persistent state
Filters handle request-specific state
Controllers coordinate request/response flow
Sessions and cookies manage temporary state
Logs track application events
Data Management
Database handled via Go database/sql or ORM libraries
Models define structure and validation
Migrations track schema changes
Cache frequently accessed data for performance
Logs track requests, errors, and activity