Welcome to the Blog project! This is a simple Rails application for managing blog posts.
Before running the project, make sure you have the following installed:
- Docker
- Docker Compose
To run the project locally, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/blog.git
- Navigate to the project directory:
cd blog
- Build the Docker image:
docker-compose build
- Start the Docker containers:
docker-compose up -d
- Create the database and run migrations:
docker container exec rails_blog_61-app-1 db:create
docker container exec rails_blog_61-app-1 db:migrate
- Install Webpacker.
docker container exec rails_blog_61-app-1 webpacker:install
- Open your browser and visit
http://localhost:3000
to see the application.
To run tests for the project, we use the RSpec gem. Follow these steps:
- Make sure the Docker containers are running:
docker-compose up -d
- Run the RSpec tests:
docker container exec blog_app_1 rspec
If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request.
This project is licensed under the MIT License.