rbanos-mv / rails-blog

The Blog app will be a classic example of a blog website. You will create a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby Blog app

The Blog app will be a classic example of a blog website. You will create a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.

Built With

  • Ruby on Rails
  • PostgreSQL
  • devise / devise-jwt - for authentication
  • cancancan - for authorization

Getting Started

To get a local copy up and running follow these simple steps:

Prerequisites

  • Ruby ruby-3.1.2 installed
  • PostgreSQL dbms running

Setup

  • Open your terminal and navigate to the folder you would like to save the project.

  • Type these commands into the terminal:

git clone https://github.com/rbanos-mv/rails-blog.git
cd rails-blog
bundle install
  • You will need a .env file before you install and run the project. The .env file contains environment variables needed to deploy the webpage. There is a commented .env.example file you can use as a guide to configure your own. Type the following command into the terminal (or Git Bash, if using Windows) to create your .env file:
cp .env.example .env
rails secret
  • Edit file .env

    • Replace the value for the variable DEVISE_JWT_SECRET_KEY with the value returned by the rails secret command.
    • Provide values for DATABASE_HOST, DATABASE_USER and DATABASE_PASSWORD
  • Type this commands into the terminal:

rails db:reset

Run application

  • Type this commands into the terminal:
rails server

Testing

  • Type these commands into the terminal:
rspec

Authors

👤 Roberto A. Baños Alvarez

Collaborator

👤 Daniel Malo

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

📝 License

This project is MIT licensed.

About

The Blog app will be a classic example of a blog website. You will create a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.


Languages

Language:Ruby 79.2%Language:HTML 18.1%Language:CSS 1.5%Language:JavaScript 1.2%