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.
- Ruby
- Ruby on Rails
- RSpec, PostgreSQL
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
Next, use this command to create the databases:
rake db:create
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
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
👤 Fernando Herrera
- GitHub: @fherrerao;
- LinkedIn: Fernando Herrera;
- Twitter: Fernando Herrera;
Give a ⭐️ if you like this project!
- Thanks to my family for their suport.
This project is MIT licensed.