Giter Site home page Giter Site logo

melissacarbone / quill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quinn/empirical-grammar

0.0 2.0 0.0 8.38 MB

Quill is an interactive grammar tool.

Home Page: http://www.quill.org/

Ruby 49.48% JavaScript 7.24% CoffeeScript 3.92% CSS 38.95% Shell 0.42%

quill's Introduction

Welcome to Quill!

Quill is an open platform for providing interactive grammar lessons.


Code Climate Build Status Coverage Status Dependency Status

Contributing

Quill is built and maintained by a core team and volunteers. If you have ideas on how to improve Quill, or just want to help, please join us!

  1. Check our Github issue queue for ideas on how to help.
  2. Make sure your code follows Ruby and project conventions.
  3. Make sure you don't have any IDE / platform specific files committed. i.e. .DS_Store, .idea, .project (consider adding these to a global gitignore).
  4. Before commiting, run rake, make sure all tests pass.
  5. Introduce changes with pull requests.

Read our guide to contributing for more information.

Building

A good place to start is by setting up and running Quill on your local machine.

If you are having any trouble installing, please post your questions here.

Note: Unless stated otherwise, all commands assume that your current working directory is the Quill application root.

  1. Set up an RVM environment.

    Note: You do not have to do this, but can be helpful if you work with multiple Ruby projects. See the RVM home page for more details.

    rvm install 1.9.3
    rvm gemset create quill
    echo "1.9.3" >> .ruby-version
    echo "quill" >> .ruby-gemset
    
  2. Install dependencies.

    bundle install
    

    Note: This may require you to install missing system packages using your system package handler (apt, yum, etc.).

  3. Set up your database configuration by creating and editing the file config/database.yml with appropriate connection information. Example information is provided below.

    development:
        host: localhost
        adapter: postgresql
        encoding: unicode
        database: <database_name>
        pool: 5
        username: my_name
        password: my_pass
    
  4. Build the database structure.

    sudo service postgres start   # may change depending on your OS
    
    rake db:create
    rake db:schema:load
    
  5. Seed data into the database.

    rake db:seed
    

    If you are granted access to a Heroku environment, you can also capture a database directly from that. Instructions below are for example only.

    heroku pg:capture --app <app>
    curl -o ~/latest.dump $(heroku pgbackups:url --app <app>)
    pg_restore --verbose --clean --no-acl --no-owner -h localhost -U <your_db_user> -d <database_name> ~/latest.dump
    

    Note: <app> is the name of the Quill deployment on Heroku you want to retrieve data from.

  6. Create a .ruby-env file in the project root and define necessary environment values.

    echo "RAILS_ENV=development
    APP_SECRET=your-secret-key
    HOMEPAGE_CHAPTER_ID=1" >> ./.ruby-env
    

    Note: You may need to cd out and back into the app root for these environment changes to apply.

    cd ~; cd -;
    
  7. Start the app, make sure it works.

    rails server
    curl localhost:3000
    

Benchmarking

user = User.first
user.refresh_token!
token = user.token

$ ab -H "Authorization: Basic `echo TOKEN_GOES_HERE: | base64`==" -n 5 -c 1 http://www.quill.org/profile

Help

Find us on IRC at #empirical-quill!

quill's People

Contributors

quinn avatar daymun avatar brifishjones avatar petergault avatar jessehorne avatar mzemel avatar ccowdery avatar

Watchers

James Cloos avatar Melissa Carbone avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.