Skip to content

Gemstone Catalog built for fun with Ruby on Rails and React JS

License

Notifications You must be signed in to change notification settings

olopes/sugilite

Repository files navigation

README

This README would normally document whatever steps are necessary to get the application up and running.

Quick user guide

Read "Build and run" section below to start Sugilite. Once started, open the URL http://localhost:3000 in your browser.

Click the tile with the plus symbol to add a new gemstone to your collection.

  • Enter the gemstone name
  • Enter the most common color
  • Enter the chemical formula.
    • Use underscore characters to subscript: O_2_ becomes O2.
    • Use caret characters to superscript: O^2^ becomes O2.
    • Use two vertical bars || to add a new line.
  • Click the camera tile to upload a photo of the gemstone.
  • Click save and you're done!

To open the details a gemstone, just click the tile.

To search for a gemstone, use the top right input box (type something and press ENTER).

Build and run

Things you may want to cover:

  • Ruby version: 3.3.4

  • System dependencies Install dependencies:

bundle install

Update dependencies (updates Gemfile.lock):

bundle update
  • Configuration

  • Database creation & initialization

# creation:
rails db:migration

# initialization with sample data:
rails db:seed

# or both in a single shot:
rails db:setup
  • How to run the test suite
rails spec
  • Services (job queues, cache servers, search engines, etc.)
rails routes
  • Deployment instructions
rails server
  • Clear compiled assets cache
rails assets:clobber ; rails webpacker:clobber
  • ...

I'm following these tutorials:

Generate a ReactJS component:

rails g react:component GemstoneDetail

Then I rename .js to .jsx because yes, although is not really necessary.

TODO

  • Drag & drop to upload a photo
  • Search as you type (no need to press ENTER key)
  • Fix some issues regarding webpack config

About

Gemstone Catalog built for fun with Ruby on Rails and React JS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published