Wednesday July 27

Interruptions and Stuff

  • 1:00-1:45 Meeting

Standups

  • What is going well?
  • What is not going well (what are you struggling with)?
  • What's something you'd like to share not about code?
  • What's something you've learned

Common Wins

  • backlog Wins !!
  • adonis new but doable
  • we did not eat all of the sonic
  • teamwork rulz
  • sleeep

Common Struggles

  • terminal woes
  • cheese sticks
  • pokemans kill de phone
  • crashes are coming?
  • lots of adonis still to learn
  • sometimes hard to know what to do next
  • time management and life balance
  • sleeeep

Topics

  • Auth Setup
    • User Model
    • User Migration
    • Token Model
    • Token Migration
  • Database Config (Review)
  • User Register (Review)
  • User Login
  • User Checks (is the user logged in)
  • Relationships
    • User has many recipes
  • Flash messages
    • request.with().flash()
    • old()

FAQ

  • [ ] What do models do (in Adonis)?
  • [X] How to use the ace CLI
    • Run and rollback migrations
    • Make (generate) models, controllers, migrations, etc
    • Setup Users and Auth
  • [X] Database Config
    • .env
    • Check by trying to run migrations
  • [X] Session vs Database
    • Database - (Long Term Memory) Allows to store forever...ish and between anyone you want to let them have it
    • Session - (Short Term Memory) Login/Logout, Error/Success messages, old form input
  • [ ] Controllers vs Callbacks
  • [X] Nunjucks Template Loops and If
  • [X] CSRF
    • Security for POST requests
    • Checks that session is valid

Code

https://github.com/tiy-tn-fee-2016-summer/lesson-7-adonis/tree/day-03

Homework

results matching ""

    No results matching ""