/work

Build yourself, one step at a time.

Primary LanguageHTML

Work

Quickstart

  1. Install application dependencies into virtual environment:

    make install
  2. Set necessary environment variables:

    export SECRET_KEY='my-secret-key'
  3. Install frontend dependencies via npm and bower:

    npm install
    bower install
  4. Run local development server:

    make serve

Features

  1. Swap between application configurations

    # Set path to application config into environment variable
    export APP_CONFIG='production.cfg'
    
    # Serve application
    make serve
  2. Compress static assets

    # Create a bundle of assets
    scripts = Bundle(
        'scripts/api.js',
        'scripts/main.js',
        filters=('jsmin'),
        output='dist/main.%(version)s.js'
    )
    
    assets.register('scripts', scripts)
    {% assets "scripts" %}
      <script src="{{ ASSET_URL }}"></script>
    {% endassets %}