Skip to content

louisrawlins/barebones-usersite

Repository files navigation

Setup:

  1. Fork this project by clicking the "Fork" button in GitHub
  2. Download the source:
    git clone git@github.com:your-github-id/basic-usersite.git
    (replace your-github-id)
  3. Add the master project as an upstream remote (this is where you'll send pull requests)
    cd basic-usersite && git remote add upstream git@github.com:appoxy/basic-usersite.git
  4. Make sure everything is up to date:
    git fetch upstream
  5. Install rvm (see: http://beginrescueend.com/rvm/install/ for more detail)
    bash < <(curl -s https://rvm.beginrescueend.com/install/rvm )
  6. Install the required Ruby version (ruby 1.9.3-p0)
    rvm install ruby-1.9.3-p0
    (For Mac OS X Lion, you may need rvm install 1.9.3 --with-gcc=clang per this post http://stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues)
  7. Install bundler
    gem install bundler
  8. Install foreman
    gem install foreman
  9. Bundle it up
    bundle

Running on localhost:

  1. Start app: foreman start
  2. Load app in browser: localhost:5000
    (More info is here http://michaelvanrooijen.com/articles/2011/06/08-managing-and-monitoring-your-ruby-application-with-foreman-and-upstart/)

Make all users admins:

  1. Open console in project directory

    % sqlite3 basic-usersite.sqlite3
    SQLite version 3.7.7 2011-11-11 12:34:56
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    sqlite> update users set usertype='admin';
    sqlite> .quit

About

Basic user site template using Ruby / Sinatra providing little to no styling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published