Skip to content

sebastienbourda/rails-blog-template

Repository files navigation

Rails Blog Template

  • Version: 1.0.0
  • Developer: Sebastien Bourda
  • Created: 04-10-2024
  • Last updated: 04-10-2024
  • License: MIT

Tech

Features

  • User authentication for users (sign up, sign in, sign out). Signup enable/disable by ENV variable.
  • Create, edit, delete, and view posts.
  • Trix editor for rich text editing in posts.

Setup

  • Clone the repository
git clone [email protected]:sebastienbourda/rails-blog-template.git
  • Run to install dependencies
bundle install
  • Run to create best_blog database and run migrations
rails db:create db:migrate
  • Run to build the frontend and start the server
bin/dev
  • Visit http://localhost:3000 in your browser

  • Create .env file and add the following variable

  • SIGNUP_ENABLED="true" to enable sign up

    !!! WARNING: Enable sign up in production only to create the first user (you), then disable it. !!!

    You can let the sign up enabled but add role to user. And set the role to 'admin' for you.

    You can also create the first user in the rails console.

  • Remove banner rendering in app/views/layouts/application.html.erb and app/views/shared/_banner.html.erb

License

This project is open source and available under the MIT License.

About

Template to generate blog application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published