A Blog project using the Talon Framework.
git clone https://github.com/talonframework/talon_blog_demo.git
cd talon_blog_demo
mix deps.get && cd assets && npm install && cd .. && mix ecto.setup && mix phx.serverVisit http://localhost:4000/talon/blogs in your browser.
mix phx.new talon_blog_democd talon_blog_demomix ecto.createmix phx.gen.context Accounts User users first_name last_name username email active:booleanmix phx.gen.context Blogs Blog blogs name description:text active:boolean user_id:references:accounts_users
- Add the
belongs_toandhas_manyto theBlogandUserschemas
mix phx.gen.context Blog as Post posts title body:text published:boolean views:integer blog_id:references:blogs_blog
- Add the
belongs_toandhas_manyto thePostandBlogschemas
- Fill out the
seeds.exsfile mix run priv/repo/seeds.exs- Edit the
mix.exsfile. Addtalonandfakerdeps mix deps.getmix talon.new- Follow the instructions printed
- Add the pagination to
repo.ex - Add the talon routes to
router.ex - Edited the
brunch-config.jsfile. Copied the boilerplate sections, pasted, and uncommented.
mix talon.gen.resource Accounts.Usermix talon.gen.resource Blogs.Blogmix talon.gen.resource Blogs.Post- Edit the
config/talon.exsfile and add the resources per instructions