Giter VIP home page Giter VIP logo

learningportal's Introduction

learningportal

A Couchbase / Elastic Search proof of concept app.

Dependencies

Stable

The following dependencies are considered stable and working as a minimum version.

  • elastic search 0.19.3
  • Ruby 1.9.3-p0
  • Bundler 1.2.0.rc

Development

The following dependencies are currently in development and may change more frequently.

  • libcouchbase 1.1.0.dp5
  • couchbase server 2.0.dp4.1 (version 730)

Installation

Development (OSX)

The first thing to do is ensure your OSX machine is ready to go.

  1. OSX Ruby Development Dependencies
  2. Application Dependencies

Once you've done that, for local development we have two approaches

The benefit of a VM is such that new development releases of couchbase server can be tested (and isolated) from the learningportal app.

Production (EC2)

re-install couchbase on an ec2 instance.

sudo /etc/init.d/couchbase-server stop
sudo rpm -e couchbase-server-2.0.0dp4r-730.x86_64
sudo rm -rf /opt/couchbase
sudo rpm -i couchbase-server-community_x86_64_2.0.0dp4r-730-rel.rpm
sudo /etc/init.d/couchbase-server start

Migrating Staging / Production Buckets

When adding new buckets to staging or production we sometimes only want to create and migrate the buckets which do not yet exist. This is done by the following:

rake lp:ensure_buckets
rake lp:migrate

Management Tasks

The following is a list of tasks that are useful for managing the application.

โžœ  learningportal git:(master) rake -T | grep lp:
rake lp:create              # Create all buckets
rake lp:drop                # Drop all buckets
rake lp:migrate             # Update couchbase views
rake lp:ensure_buckets      # Detect and create missing buckets (Safe operation)
rake lp:es:create_index     # Create ElasticSearch index
rake lp:es:delete_index     # Delete ElasticSearch index
rake lp:es:reset            # Delete and recreate ElasticSearch index
rake lp:recalculate_active  # Recalculate active content
rake lp:recalculate_scores  # Schedule background score indexing for all documents
rake lp:reindex             # Regenerate all indexes
rake lp:reset               # Reset all data (create, drop, migrate, seed)
rake lp:seed                # Seed 100 documents
rake lp:top_tags_authors    # Update top tags and authors

Libraries

learningportal's People

Contributors

davidjrice avatar kierangraham avatar mschoch avatar wakeuphate avatar

Watchers

 avatar  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.