Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

adhrinae/hanami-webpack-config-example

Repository files navigation

hanami-webpack-config-example

An Example of setting Webpack within Hanami project

Requirements

  • Ruby 2.4.1
  • Node 7.8.0
  • yarn or npm (yarn recommended)

Setting development environments up

  1. Install Hanami gem (If you don't installed it yet)

     gem install hanami
    
  2. And all the dependencies

     bundle install
    
  3. Migrate a database

     bundle exec hanami db migrate
    
  4. Install node modules

     yarn install
    
  5. Bundle assets

     yarn webpack / $ yarn dev (for development)
    
     yarn build (for production)
    
  6. Start the server

     bundle exec hanami server
    
  7. Look for what is going on - http://localhost:2300

About

An Example of setting Webpack within Hanami project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published