Skip to content

daviidy/lifestyle-app

Repository files navigation

lifestyle-app

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.

Project screenshot

screenshot

🔨 Built in

  • Ruby on Rails 6.0.3
  • Bootstrap 4

🚀 Our Project

Our project can be found at https://github.com/daviidy/lifestyle-app

Live Demo

You can find the demo here

Video Link

You can find the presentation here

To run the project in local

  • 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
    • runrails db:create
    • run rails db:migrate
    • type localhost:3000/ in address bar.

How to run the test suite

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:

unit tests

  • 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

integration tests

  • rspec spec/features/authenticate_user_spec.rb
  • rspec spec/features/create_category_spec.rb

👨🏽‍💻 👨🏿‍💻 Creator

👤 David YAO

Acknowledgement

I have followed the design given by Nelson Sakwa in Behance

🤝 Contributing

Contributions, issues and feature requests are welcome!

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is no licensed.

About

This project consisted of building a lifestyle articles website. Built with Rails 6. You can create articles, vote articles, and comment on those articles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published