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.
Check out the live site here.
Here's a short video on some of Snipbase's features.
Core
- Ruby (Tested with >2.1.x)
- Ruby Development Kit (Install instructions)
- PostgreSQL
- Python >2.5 (Syntax highlighting via Pygments)
Development
- Poltergeist for Javascript-enabled acceptance tests
Create the database user (default: snipbase).
$ psql -U postgres
postgres=# create role snipbase with createdb login password '<your_database_password>';
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
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.