== README
-
bundle install
-
rake db:migrate
-
rake db:seed
-
gem install foreman
-
foreman start
-
visit: http://localhost:3000
rake test
rake test test/features
Scss: /app/assets/stylesheets/base
Example page: http://localhost:3000/pages/home
- Add a page into /app/views/pages with a name like: hello.html.slim
- Add coresponding css file in /app/assets/stylesheets/ with a name like: _hello.scss
- Append a line in /app/assets/stylesheets/application.scss with: (at)import "home";
- Then you can see the page from: http://localhost:3000/pages/hello
- List all available components and get the name
rails generate refills:list
- Add a component
rails generate refills:import Component
- Import css or js in application.scss or application.js
- Use the html in your code and customize the css and js
visit: http://127.0.0.1:3000/letter_opener
brew install libxml2 bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2" bundle install