/Blog-app

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

Primary LanguageRuby

BLOG APP

The Blog app will be a classic example of a blog website. Is a 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
  • Ruby on Rails
  • RSpec, PostgreSQL

Configuration

To use this project you first need to have installed the following:

  • Node.js
  • Ruby
  • PostgreSQL
  • Rails
  • Ruby version

The version of ruby that is needed for this project is

  • 3.1.1p18

Once you have installed them, you need to use the following command to clone the repository:

git clone https://github.com/fherrerao/Blog-app.git

Database creation

Next, use this command to create the databases:

rake db:create

Usage

Finally, use the following command to initialize the live server:

./div/dev

Note: If you need root permissions execute:

chmod u+x bin/dev

And then install the node dependencies with:

npm install

Tests

To run all tests use the following command:

rspec spec

or

bundle exec rspec ./spec

To generate test file for model use :

rails generate rspec:model user

For run test models tests use:

bundle exec rspec spec/models

Author

👤 Fernando Herrera

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Thanks to my family for their suport.

📝 License

This project is MIT licensed.