Giter VIP home page Giter VIP logo

learn-buffalo's Introduction

Learn Buffalo

This repo contains the code used in the Learn Buffalo video course.

Updated Dec. 2023 to work with go:embed directive and other changes for Buffalo version 18.14

Sections Completed:

  1. Part 1: new project, static page, and route parameters
  2. Part 2: create a user model, add fields and methods, and test it
  3. Part 3: models and associations, one-to-one, one-to-many, many-to-many
  4. Part 4: using controllers with our models
  5. Part 5: HTML templates, partials and helpers
  6. Part 6: Forms, form_for() helper, form() helper, manually parse and grab form values from the request
  7. Part 7: Middleware and user authentication with Buffalo Plugins
  8. Part 8: Third-party Integrations and Events
  9. Part 9: CLI operations to build a production build, and other tasks
  10. Part 10: Develop and Deploy with Docker, using a cloud hosted database, or with docker-compose

Installation

Fork the project (if you want to commit and push your own changes). Each part listed above has a matching branch. The branch for part-6, for example, is the end-state of the project code at the completion of video part-6. If you want to follow along with the part-6 video, you can checkout part-5 and start making changes. After cloning the repo to your local machine, git checkout {branch-name} to view the part.

When changing branches, use these handy buffalo commands to get a clean project state:

  • buffalo pop reset - this will wipe the database and rebuild with the migrations
  • buffalo task db:seed - part-4 and beyond include a DB seed task; this will load the relevant data into your dev database
  • buffalo test - run the tests to make sure everything is working before you get started
  • buffalo dev - run the dev server to see the site in your browser

Buffalo Project

The project site http://gobuffalo.io has lots of great documentation there.

learn-buffalo's People

Contributors

briwagner avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.