Letters To The Editor Boilerplate

Build Status

Tech:

  • React
  • seamless-immutable
  • Webpack + Babel + ES6 + JSX
  • Hot Module Reloading
  • Source maps
  • ESLint
  • Jasmine + Karma + PhantomJS

Development setup

  1. Install VirtualBox

  2. Install Vagrant

  3. Install Ansible

  4. Clone the project

     git clone https://github.com/solarcitizens/letters-to-the-editor.git
    
  5. Start the Vagrant VM

     vagrant up && vagrant provision
    
  6. Log onto the VM

     vagrant ssh
    
  7. Find the project files

     cd /vagrant
    
  8. Install dependencies

     npm install
    
  9. Email configuration [Optional]

     1. Get a Mailgun account.
     2. Add MAILGUN_API_KEY="your-key" to environment vars
     3. Turn on the toggle `email.sendEmails` in each specific environment (`config/default.json`, `config/staging.json`, `config/production.json`)
    
  10. Run the tests

     npm test
    
  11. Start the server

     npm start