-
Notifications
You must be signed in to change notification settings - Fork 4
Local installation instructions
Mike Schwab edited this page Oct 23, 2018
·
6 revisions
- To install the basic development environment elements, you'll use macOS. Open the app called Terminal.
- Install XCode and use it to configure your compilers.
- Use homebrew to make sure you have git, postgresql and whatever else is needed.
- Use rvm to install Ruby 2.5.0
- Clone this app's code into your workspace.
- Use bundler to install Rails and all the gems.
Now you are ready to use the app to configure itself.
If you are a contributor, you will be using a tailored environment rather than the de facto development environment. Review the steps in the Contribution Guide.
- Edit config/database.yml to your liking. Most probably, you just have to choose a database name or accept the one that's there.
-
rake db:create
andrake db:migrate
andrake db:seed
- Start the app with
rails s
and point a browser at 'localhost:3000' to create the first admin account. - Sign up. Your confirmation url will be printed in the server log that's visible where you ran
rails s
. It will look like 'http://localhost:3000/avatars/confirmation?confirmation_token=AezrdNw5-nysJgb9Df_Y' and will be embedded in an HTML snippet such as<p><a href="http://localhost:3000/avatars/confirmation?confirmation_token=AezrdNw5-nysJgb9Df_Y">Confirm my account</a></p>
. - Activate the account using
rails c
in another Terminal window. TypeAvatar.first.update_attributes :activated => true, :admin => true