Skip to content

The website allows users to read, and if logged in, to create articles and vote. It is made using RoR and deployed on Heroku

Notifications You must be signed in to change notification settings

1v4n4/music-news-website

Repository files navigation

DO - Music news website

"Do" is a music news website with a homepage for highlighted articles, five category pages (Cover story, News, Interviews, Live, Reviews), and a few others. There are six articles on a homepage, the most popular one (the article which users voted the most), and five latest articles from all categories. Each category page has four of the most recent articles, along with their images, titles (truncated if needed), author's name, a preview of text, the number of votes, and a Read more link. If logged in, users can vote for articles from this and a few other pages. Visitors can vote only once for each article, but it is not forbidden to support their creations. Authors can edit and delete their articles, but not other people's. Screenshot1 Screenshot3 screenshot2

Live demo

Do on Heroku

Built With

  • Ruby 3.0.1
  • Rails 6.1.3.2
  • PostgreSQL 1.1
  • Node.js 12.22.1
  • Yarn 1.22.5
  • Bootstrap
  • CSS
  • HTML

Getting Started

To get a local copy run the following steps:

  • Copy this link
  • Open your terminal or command line
  • Run git clone and Paste the link
  • Open the folder with your code editor
  • Run bundle install to install all dependencies
  • Run yarn install to install yarn
  • Run rails webpacker:install
  • Run rails db:create to create the database tables
  • Run rails db:migrate to migrate the database
  • Run rails db:seed to seed the database with default values for article's categories
  • Run rails server to open the local server
  • You can follow the nav links to create a user account, to add articles, or vote

Gems needed

  • Rails Rspec To run the tests, run rspec command in the root folder.

  • CarrierWave For uploading pictures run gem install carrierwave and rails generate uploader.

Ruby Linter

Run rubocop

Run CSS Linter

Run npx stylelint "**/*.scss"

Author

👤 Ivana Novaković-Leković

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Acknowledgments

The design of this project is based on an idea by Nelson Sakwa. Sample articles and pictures are taken from websites NME, Kerrang!, Guardian, Rolling Stone, Spin, and Loudwire.

License

MIT

Show your support

Give a ⭐️ if you like this project!

About

The website allows users to read, and if logged in, to create articles and vote. It is made using RoR and deployed on Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published