This project implements a simple CRUD app for managing companies in the sport-related industry of Taipei. The initial data of the companies are imported from tmsind.csv. This app also provides a "search" feature for filtering the companies by their name, telephone, address, email, main_type, sub_type and company_no.
The demo site is available on heroku: https://tmsind.herokuapp.com/
Make sure you have ruby 3.0.2p107 installed on your system. If you don't, please update Gemfile based on what you have.
This project also requires NodeJS with yarn package manager, you can visit these websites for more information:
- Clone and
cdto the project - Run command
bundle install --without productionto install ruby dependencies - Run command
yarn installto install js dependencies - Run command
rails db:createto create the database - Run command
rails db:migrateto create the tables - Run command
rails data:migrateto import initial data
Run command rails server to start the development server and then visit http://127.0.0.1:3000
Run command bundle exec rspec -f documentation to run all the tests and output the results in documentation format.