The Ruby on Rails Blog project is a simple blog web application that allows users to create, edit, and delete blog posts. It also includes basic user authentication, with http_basic_authenticate_with method. Use the Simple.css Framework
- How to install Rails, create a new Rails app, and connect it to DB
- The general layout of a Rails app
- The basic principles of MVC and RESTful design
- How to quickly generate the starting pieces of a Rails app
Before running the project, please ensure you have the following prerequisites installed on your system:
- Ruby version 3.1.1p18
- Ruby on Rails version 6.1.7.4
- SQLite version 3.1.4
Once you have the prerequisites set up, follow these steps to run the project:
- Clone this repository to your local machine using the following command:
git clone https://github.com/RicardoVeronica/getting-started
- Change directory to the project folder:
cd getting-started
- Install the required gems:
bundle install
- Create the database and run migrations:
rails db:create
rails db:migrate
- Start the Rails server:
rails server
- Open your web browser and navigate to
http://localhost:3000
to access the blog application.
The Ruby on Rails Blog project allows users to perform the following actions:
- Sign Up: Users can create a new account to access the blog application.
- Sign In: Registered users can sign in to their accounts.
- Create Post: Authenticated users can create new blog posts with a title and content.
- Edit Post: Users can edit their own posts.
- Delete Post: Users can delete their own posts.
- View Posts: Users can view a list of all blog posts on the homepage.
If you wish to contribute to this project, please follow these steps:
- Fork the repository on GitHub.
- Create a new branch with a descriptive name:
git checkout -b feature/your-feature-name
- Make your changes and commit them with clear commit messages.
- Push your changes to your forked repository.
- Submit a pull request to the main repository with a detailed explanation of your changes.
The Ruby on Rails Blog project is open-source software released under the MIT License.
Special thanks to the Ruby and Ruby on Rails communities for their valuable contributions and support.
If you have any questions or need further assistance, please go to: Rails Forum