This is the source code for QuantifiedAwesome.com. It'll probably take a lot of tweaking to get it to work for you, but at least it's up here! =)
Instructions for setting up:
- If you use Vagrant, the included Vagrantfile will set up a bunch of things for you. If you don't use Vagrant, look at the Vagrantfile for ideas on what to install.
database.ymland customize it for your setup. Create the accompanying databases. If you would like to run your databases within the virtual machine, you may want to
apt-get install mysql-server mysql-client.
config/initializers/secret_token.rband update it.
To start with an empty database, run
Alternatively, you may want to run
rake db:setup, which will set up
the database with an admin user. The admin user will have the password
If you use Emacs, see
Other useful building steps:
If you're creating your own instance, here's how to set up an admin user using rails console:
u = User.create(email: 'email@example.com', username: 'test', password: 'testpassword', password_confirmation: 'testpassword') u.role = 'admin' u.save! u.confirm!
Environment variables to set:
- Oauth2 for Google: https://github.com/zquestz/omniauth-google-oauth2