GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jackcompton/18f-dryrun-example

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.ebextensions
.ebextensions
 
 
app
app
 
 
bin
bin
 
 
config
config
 
 
db
db
 
 
lib
lib
 
 
log
log
 
 
node_modules
node_modules
 
 
public
public
 
 
test
test
 
 
tmp/cache/assets/development
tmp/cache/assets/development
 
 
vendor/assets
vendor/assets
 
 
.gitignore
.gitignore
 
 
Gemfile
Gemfile
 
 
Gemfile.lock
Gemfile.lock
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
README.rdoc
README.rdoc
 
 
Rakefile
Rakefile
 
 
config.ru
config.ru
 
 
package.json
package.json
 
 
server.js
server.js
 
 
webpack.config.js
webpack.config.js
 
 
webpack.dev.config.js
webpack.dev.config.js
 
 

Repository files navigation

18f-dryrun-example

This is a starter kit for using Webpack & React from within the Rails Asset Pipeline.

Why? Because having to wrap every NPM module you find in a Ruby Gem is a waste of time. Also better scoping of your JS dependencies!

What do do with this thing? Fork it, copy it, whatever. It's just here to get you started faster.

Development Workstation Installation

This doc assumes you are on a UNIX like environment (Mac, Linux, BSD) - though you may do alright in Windows as well.

Dependencies

First install the following dependencies if not already installed

  1. Ruby
  2. Bundler
  3. Node
  4. Foreman (https://github.com/ddollar/foreman)

Application Setup

After git cloning the repository, cd in to the root of the application directory.

Run the following command to install ruby gem dependencies:

$ bundle install

Enter admin password when prompted.

Install the front end dependencies:

$ npm install --global webpack 
$ npm install
$ webpack

Run The Server

This starter kit includes support for hotloading of edits to your Webpack built javascript assets.

We use foreman to start the webpack development server along with the rails server.

$ foreman start

The app will run on http://localhost:3000

Deploying to Amazon Elastic Beanstalk

But wait, there's more: we've also included a handy .ebextensions config directory to make it easier for you to get started running your non-standard Rails+Webpack build process in Amazon Elastic Beanstalk. Just make sure you set RAILS_SKIP_ASSET_COMPILATION=true in your AWS EB Environment Properties, otherwise Rails will attempt to compile assets before the Webpack bundle is complete.

Elastic Beanstalk References

  • EB CLI 3 Documentation
  • Rails Apps on EB

TODO:

  1. Improve console output for Foreman (Rails process output is currently obscured)
  2. Upgrade to Rails 4.2

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.