Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This webpage allows users to create an account, vote, and post your own news about cars. Cloudinary is the external storage for the images, Active Record handles the rest of the data.

License

Notifications You must be signed in to change notification settings

LoboArkano/Automovillage

Repository files navigation

RoR Capstone Project: Automovillage

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.

Screenshots

image

image

Live Demo

Live version

Built With

  • Ruby v2.7.1

  • Ruby on Rails v5.2.3

  • Cloudinary

Future Features

  • Install trix gem to use a text editor

  • Add a user profile

Getting Started

To get a local copy up and running follow these simple example steps.

 git clone git@github.com:LoboArkano/Automovillage.git

Prerequisites

  • Ruby: 2.6.3

  • Rails: 5.2.3

  • Postgres: >=9.5

Setup

Install gems with:

bundle install

Setup database with:

 rails db:create
 rails db:migrate

Usage

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:

image

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. image

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.

image

Run tests

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

Author

πŸ‘€ Roberto Perez Jimenez

🀝 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

Give a ⭐️ if you like this project!

Design idea by Nelson Sakwa on Behance

πŸ“ License

This project is MIT licensed.

About

This webpage allows users to create an account, vote, and post your own news about cars. Cloudinary is the external storage for the images, Active Record handles the rest of the data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /