Skip to content

Latest commit

 

History

History
101 lines (73 loc) · 2.13 KB

README.md

File metadata and controls

101 lines (73 loc) · 2.13 KB

Sustyle

This is Sustyle, the website focused on the latest sustainability articles. Articles are separated into four main categories. This web page allows the registration of new users and authenticates them, users can create articles and assign them a category, they can also vote for the articles they like the most.

This site has been created mainly with Ruby on Rails as a framework and PostgreSQL database. screenshot

screenshot

The Entity Relationship Diagram used in the database: screenshot

Live Demo

Visit Page

Video Presentation

Video

Built With

  • Ruby 2.7.2
  • Ruby on Rails 6.1.1
  • PostgreSQL
  • Sqlite
  • Rspec gem
  • Simple_form gem
  • Devise gem
  • Shrine gem
  • Bullet gem
  • Bulma

Setup

To run this project locally, please ensure you have Ruby and Ruby on Rails installed on your machine, then clone this repository by running.

git clone https://github.com/mricanho/Sustyle.git

Open your terminal and CD to the directory where you create the clone repository.

Now run:

bundle install

The next two steps are important to avoid an error of action text.

First run:

yarn install --check-files

Then you need to reinstall action text with:

rails action_text:install 

If the install asks you to overwrite something, just enter:

n

To setup the database run:

rails db:create
rails db:migrate

Is super important to populate the app, so now run:

rails db:seed

To set up the server put:

rails s

After this you can open your favorite web-browser and copy paste the next:

http://localhost:3000

Author

👤 Miguel Ricaño

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Microverse
  • The Odin Project

📝 License

This project is MIT licensed.