Getting Started
CLI
Request handling
- Routing
- Action Controller
- Resources
- Context
- Request Binding
- Middleware
- Error Handling
- Sessions
- Cookies
Frontend
Database
- Getting started with Pop
- Soda CLI
- Database Configuration
- Buffalo Integration
- Models
- Generators
- Migrations
- Fizz
- Mutations
- Querying
- Raw Queries
- Callbacks
- Scoping
- Associations and Relationships
- One to one associations
- One to many associations
Guides
- API Applications
- File Uploads
- Background Job Workers
- Mailers
- Tasks
- Local Authentication
- Third Party Authentication
- Events
- Go Modules
- Localization
- Logging
- Template Engines
- Testing
- Videos
Deploy
Generators
Database
Generators
$ buffalo pop g --help
Generates config, model, and migrations files.
Usage:
buffalo-pop pop generate [command]
Aliases:
generate, g
Available Commands:
config Generates a database.yml file for your project.
fizz Generates Up/Down migrations for your database using fizz.
model Generates a model for your database
sql Generates Up/Down migrations for your database using SQL.
Flags:
-h, --help help for generate
Global Flags:
-c, --config string The configuration file you would like to use.
-d, --debug Use debug/verbose mode
-e, --env string The environment you want to run migrations against. Will use $GO_ENV if set. (default "development")
-p, --path string Path to the migrations folder (default "./migrations")
Use "buffalo-pop pop generate [command] --help" for more information about a command.
Migrations
For information on generating migrations see Migrations.