This is a blog application made with Ruby on Rails, where an user can sign up and post articles in the corresponding category. A user can also register with a facebook account, and an image can be uploaded to each article.
- Ruby v2.7.1
- Ruby on Rails v6.0.3.4
- Postgresql
- Testing: RSpec and Capybara
- Rails Gems: DEVISE, OMNIAUTH
Clone the respository on your local machine using the command:
git clone https://github.com/chubaquelo/Tech-Articles-Blog
Go inside the created folder:
cd Tech-Articles-Blog
Instal Gems and dependencies:
bundle install
yarn install --check-files
Run database migration and seed:
rails db:create
rails db:migrate
rails db:seed
Run server:
rails server
You can run Rspec tests with the command:
rspec spec
Open application in the browser through: http://localhost:3000
Note: although rails db:seed will fill the database with some articles, these won't have any images attached to them. Make sure you upload new articles with images once you have the app running.
- Design of blog app was taken from Nelson Sawka on Behance
- Devise and Omniauth were used for Facebook Login API integration. API keys (public and secret) are saved as environment variables for security.
- Database model (ERD) first approach given for this work was:
- LinkedIn: sergio-obolevich
- Github: @chubaquelo
- Twitter: @sergioObolevich
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!