Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup:

  1. Fork this project:
    1. click the "fork" button
  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. Bundle it up
    bundle

Running on localhost:

  1. Start app: thin -e local start -p 3000

Make all users admins:

  1. open console in dir with repo
  2. % sqlite3 basic-usersite.sqlite3
    SQLite version 3.7.7 2011-06-23 19:49:22
    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

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages