/blog

Primary LanguageRubyMIT LicenseMIT

Microverse

Ruby Shell Script Postgres Rails

Blog ๐Ÿ—’๏ธ๐Ÿ’กโœ๏ธโค๏ธ

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.

Database ERD Diagram ๐Ÿ“

Built With ๐Ÿ› ๏ธ

  • 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

Getting Started โžก๏ธ

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 returns ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) or similar, you have Ruby installed.
  • Ruby version used ruby 3.1.2

Setup ๐Ÿ› ๏ธ

  • 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 applicationpsql --version.
  • Run rails db:create.
  • Create a .envs file using the link to host postgres credentials.

Testing

To run tests:

  • Ensure you have RSpec installed: running bundle install will install it since it is included in the Gemfile.
  • To run a specific test:
  • Run rspec spec/models<name_of_spec_file>
  • To run all tests:
  • Run rspec spec

Authors โœ๏ธ

๐Ÿ‘ฉโ€๐Ÿ’ป Rodrigo Johann Reckziegel Nunes โœ๏ธ

Project Milestones ๐Ÿ“Œ

  • 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. โš™๏ธ

๐Ÿค 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

  • Hat tip to anyone whose code was used
  • Microverse staff
  • Inspiration
  • etc

๐Ÿ“ License

This project is MIT licensed.