Geek's Den is an entertainment news website created using Ruby on Rails, based on the design idea by Nelson Sakwa on Behance (https://www.behance.net/gallery/14554909/liFEsTlye-Mobile-version) .
-
It allows the users to register and login using only a username.
-
Then they can start populating the website with articles of their creation.
-
The articles need a Title, a content or body, a picture and a corresponding category, selected through a select-box.
-
The home webpage shows the latest articles by categories and full-width promo of the featured article. This featured achievement is accomplished if the article is the most voted.
-
When a user clicks on a category, all the articles associated are shown.
-
If a user wants to see the articles of his creation, he can go to his user page by clicking his name on the nav bar.
- Ruby v2.7.1
- Ruby on Rails v5.2.3
- HTML, CSS
- Postgres
- Heroku for deployment
- Google for cloud storage
- Tests with RSpec and Capybara
Geek's Den: Live version Hosted on a Heroku free account, it may take a while to load.
To get a local copy up and running follow these simple steps.
-
Ruby: 2.6.3
-
Rails: 5.2.3
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.
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/features
And controller tests:
bundle exec rspec spec/controllers
-
The user login can be expanded with e-mail and password
-
The website can be made mobile-friendly
👤 Fernando Bahamondes
- Github: @ferbaco86
- Twitter: @ferbac0
- Linkedin: linkedin
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
Roberto My current coding partner
Nelson Sakwa The designer behind the base idea of the website
My Microverse Stand Up Team for support and guidance
Unsplash.com for some background pictures
This project is MIT licensed.