We had to build a website based on lifestyle articles.
- To use the app, you have to sign in or log in
- Authenticated user:
- can create articles categories
- can create articles and link those articles to many categories
- can comment on article
- can vote an article
- The homepage shows a featured article (who has the biggest number of votes), and the list of all the categories in order of priority
- The category page show all the articles for a category
- The article page shows the content of an article.
- Ruby on Rails 6.0.3
- Bootstrap 4
Our project can be found at https://github.com/daviidy/lifestyle-app
You can find the demo here
You can find the presentation here
- clone the repository from here repo link
- Open terminal and navigate to root folder (/lifestyle-app).
- Once in root folder
- type:
rails s
in terminal and in browser - run
bundle install
- run
yarn install
- run
rails db:create
- run
rails db:migrate
- type localhost:3000/ in address bar.
- type:
We added validations and associations tests for User, Event and Attendance models. We added also integration tests for authentication and event creation Run these tests with those commands:
rspec spec/user_spec.rb
rspec spec/category_spec.rb
rspec spec/article_spec.rb
rspec spec/vote_spec.rb
rspec spec/organization_spec.rb
rspec spec/features/authenticate_user_spec.rb
rspec spec/features/create_category_spec.rb
👤 David YAO
- Github: @daviidy
I have followed the design given by Nelson Sakwa in Behance
Contributions, issues and feature requests are welcome!
Give a ⭐️ if you like this project!
This project is no licensed.