This repo holds a simple blog website app built with ROR. The website shows the list of posts and empowers readers to interact with them by adding comments and liking posts.
- Ruby Popular programming language thatโs used for lots of things, from web app development to data analysis.
- GitHub flow: Correct use of Branches for deployment and features development.
- Linters Check (Rubocop & Stylelint): Local and Pull Request check for errors, bugs and stylistic errors in code.
- PostgreSQL: A powerful, open source object-relational database system.
- Rails: A web application development framework written in the Ruby programming language. This app currently implements version 7.0.4
To get a local copy up and running follow these simple steps.:arrow_down:
- Check the Ruby version or if you have at all by running
ruby -v
if it returnsruby 3.1.2p20 (2022-04-12 revision 4491bb740a)
or similar, you have Ruby installed.
- Ruby version used
ruby 3.1.2
- Clone the repository using the GitHub this link ๐
cd blog
- Run
bundle install
- Run
rails server
- Open Browser
http://localhost:3000/
- Ensure you have PostgreSQL installed before running the application
psql --version
. - Run
rails db:create
. - Create a .envs file using the link to host postgres credentials.
To run tests:
- Ensure you have
RSpec
installed: running bundle install will install it since it is included in theGemfile
. - To run a specific test:
- Run
rspec spec/models<name_of_spec_file>
- To run all tests:
- Run
rspec spec
๐ฉโ๐ป Rodrigo Johann Reckziegel Nunes โ๏ธ
- GitHub: @Hannziegel
- LinkedIn: Rodrigo Johann Reckziegel Nunes
- Milestone 1: Creating a data model. โ๏ธ
- Milestone 2: Validations and Model specs. โ๏ธ
- Milestone 3: Processing data in models. โ๏ธ
- Milestone 4: Setup and controllers. โ๏ธ
- Milestone 5: Controllers specs. โ๏ธ
- Milestone 6: Views. โ๏ธ
- Milestone 7: Forms. โ๏ธ
- Milestone 8: Integration specs for Views and fixing n+1 problems. โ๏ธ
- Milestone 9: Add Devise. โ๏ธ
- Milestone 10: Add authorization rules. โ๏ธ
- Milestone 11: Add API endpoints. โ๏ธ
- Exercise: API documentation. โ๏ธ
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a โญ๏ธ if you like this project!
- Hat tip to anyone whose code was used
- Microverse staff
- Inspiration
- etc
This project is MIT licensed.