This project contains a web news page on motorsports. It is possible to create a user account and publish articles with an image. You can also vote for the articles you like.
-
Ruby v2.7.1
-
Ruby on Rails v5.2.3
-
Cloudinary
-
Install trix gem to use a text editor
-
Add a user profile
To get a local copy up and running follow these simple example steps.
git clone git@github.com:LoboArkano/Automovillage.git
-
Ruby: 2.6.3
-
Rails: 5.2.3
-
Postgres: >=9.5
Install gems with:
bundle install
Setup database with:
rails db:create
rails db:migrate
Start server with:
rails server
Open http://localhost:3000/
in your browser.
You need to create at least one category, like this:
Category.create(name: "Formula 1", priority: 1)
Create your user account only with your name:
To create an article, select CREATE ARTICLE in the navbar and give a title, content, image, and at least one category. You need to be logged in to perform this action.
To add a vote to an article, click the category section and click the Add Vote link. You need to be logged in to perform this action.
To run all tests use this command:
bundle exec rspec
To run only model tests run this instead:
bundle exec rspec spec/models
For views tests only, execute this:
bundle exec rspec spec/feature
👤 Roberto Perez Jimenez
- Github: @LoboArkano
- Twitter: @LoboArcano92
- Linkedin: linkedin
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
Give a ⭐️ if you like this project!
Design idea by Nelson Sakwa on Behance
This project is MIT licensed.