Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

194 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snipbase Circle CI

A social and collaborative code snippet manager with GitHub Gists integration.

Snipbase is a collaborative project between Timothy Tam and Benjamin Heng. This project was developed as part of the NUS Orbital programme.

Orbital is the School of Computing’s self-driven programming summer experience. It is designed to give first-year students the opportunity to 1) self-learn and 2) build something useful. It is designed as a 4 modular credit (MC) module that is taken pass/fail (CS/CU) over the summer.

Demo

Check out the live site here.

Here's a short video on some of Snipbase's features.

Setup

Dependencies

Core

  1. Ruby (Tested with >2.1.x)
  2. Ruby Development Kit (Install instructions)
  3. PostgreSQL
  4. Python >2.5 (Syntax highlighting via Pygments)

Development

  1. Poltergeist for Javascript-enabled acceptance tests

Database Setup

Create the database user (default: snipbase).

$ psql -U postgres
postgres=# create role snipbase with createdb login password '<your_database_password>';

App Setup

Set your database password as an environment variable.

  • *nix: export PG_PASSWORD=<your_database_password>
  • Windows: set PG_PASSWORD=<your_database_password>

Install gem dependencies and initialize database.

$ gem install rails
$ bundle install
$ rake db:create
$ rake db:schema:load

Start the server.

$ rails server

FAQ

Why do I get ExecJS::ProgramError while trying to load the webpage on Windows?

This is a known issue with ExecJS not working as expected on Windows machines using the default Javascript runtime. The easy fix is to install Node.js.

About

A social and collaborative code snippet manager.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages