How to a create a blog in Ruby on Rails API part 1
Building a blog is sort of a right-of-passage when learning to code. In this episode, we'll create a very simple post model and expose an API endpoint to display all of those blog posts. In the next episodes, we'll build out our frontend to display those, and then add create, update and delete.
š¤Æ Support on Patreon
ā±ļø Timestamps:
š Newsletter:
šŖElsewhere:
šConcepts:
šResources:
š¬ Subscribe!
My name is David W Parker and Iām creating and publishing videos on ProgrammingTIL to help teach anyone and everyone who wants to code. Iām a huge fan of Ruby on Rails, Svelte, TailwindCSS, and WebGL. Iāve used React a lot in the past, as well as some Vue and AngularJS. Iāve done some professional Python and Django. I like to create real applications and my tutorials will walk you through how to build something real from beginning-to-end.
š¤Æ Support on Patreon
- https://www.patreon.com/davidwparker
ā±ļø Timestamps:
- 00:00 - Introduction
- 00:35 - Migration
- 01:35 - post model
- 02:00 - Using Rails concerns and corresponding files
- 04:45 - routes.rb
- 05:15 - posts controller and spec
š Newsletter:
- https://www.programmingtil.com/
šŖElsewhere:
- Twitter: https://twitter.com/davidwparker
- Twitter: https://twitter.co m/programmingtil
- GitHub: https://github.com/davidwparker
šConcepts:
- Creating a post model
rails g migration createPosts
rake db:migrate
šResources:
- https://github.com/davidwparker/programmingtil-rails/tree/ep15
š¬ Subscribe!
- http://bit.ly/subdavidwparker
My name is David W Parker and Iām creating and publishing videos on ProgrammingTIL to help teach anyone and everyone who wants to code. Iām a huge fan of Ruby on Rails, Svelte, TailwindCSS, and WebGL. Iāve used React a lot in the past, as well as some Vue and AngularJS. Iāve done some professional Python and Django. I like to create real applications and my tutorials will walk you through how to build something real from beginning-to-end.
ruby #rails #rubyonrails
Ā© programmingtil.com