Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split "setting up development" into a separate guide #3293

Merged
merged 7 commits into from
Dec 12, 2016
Merged

Split "setting up development" into a separate guide #3293

merged 7 commits into from
Dec 12, 2016

Conversation

MatMoore
Copy link

@MatMoore MatMoore commented Dec 3, 2016

Move this from CONTRIBUTING.md to docs/setting-up-development.md, so that it's
easier to understand and link to.

I've also reordered some of the sections in it to make it easier to get to the point where you have the app running.

See issue #3251

In order to support making it easier to reference this block of instructions
and to make it easier for them to follow

(part of #3251)
- Move the vagrant section to the top, as it's an alternative to installing a
bunch of dependencies.

- Move github OAuth into a configuration section further on, because you
don't need it to run the app.

- Make the `bin/setup` script its own section, because it's an important step
to get the app running.
For now, link to it above the section about git workflow,
since the TOC just shows the current structure of CONTRIBUTING.md.

- Node.js

To install Ruby, check out [RVM](https://rvm.io), [rbenv](https://github.com/sstephenson/rbenv) or [ruby-install](https://github.com/postmodern/ruby-install).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps you could link directly to the installation documentation pages? For example, for RVM you could refer to https://rvm.io/rvm/install.


To install Ruby, check out [RVM](https://rvm.io), [rbenv](https://github.com/sstephenson/rbenv) or [ruby-install](https://github.com/postmodern/ruby-install).

PostgreSQL can be installed with [Homebrew](http://brew.sh) on Mac OS X: `brew install postgresql`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two small things:

  1. Perhaps you could make it a bulleted list, with an entry for each platform.
  2. I'd like to see a link to a Windows installation too.

* Fetch the seed data: `rake db:seeds:fetch`
* Seed the database: `rake db:seed`

If you are having 'PG::Connection ...' or 'Peer authentication failed for user ...' issues you can follow these steps (this is assuming that you modified the database.yml file and your changes are not being accessed properly. Anywhere that it is stated "PGUSER=postgres" replace "postgres" with your specified username that you use for your postgresql databases):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put the error messages in backticks, to make them standout.

@kytrinyx
Copy link
Member

kytrinyx commented Dec 4, 2016

I'm stoked to see this change—the Contributing Guide has been an overwhelming wall of text and this definitely helps.

@MatMoore
Copy link
Author

Thanks for the review @ErikSchierboom. I've added a few more commits implementing your suggestions.

I've linked to https://www.postgresql.org/download/windows/ which has installers for windows (I haven't tried these myself but it seems like the obvious way to do it). For everything else we're already linking out to instructions that cover multiple platforms so I don't think I can improve on that.

I also split up the troubleshooting section a bit more. I think it's still a bit confusing which db: tasks do what and why, but hopefully that helps.

@ErikSchierboom
Copy link
Member

Great, LGTM!

@kytrinyx
Copy link
Member

Thank you, @MatMoore!

@kytrinyx kytrinyx merged commit 3a90083 into exercism:master Dec 12, 2016
@MatMoore MatMoore deleted the split-setting-up-documentation branch December 13, 2016 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants