|
| 1 | +There are a few services you'll need **_(all free)_** in order to run the development server and access the app locally. Here are the instructions for getting them: |
| 2 | + |
| 3 | +# Algolia (Choose OAuth or Email Sign Up) |
| 4 | +## Algolia: OAuth Sign Up |
| 5 | +1. [Click this link and sign up for an account with either GitHub or Google.](https://www.algolia.com/users/sign_up) |
| 6 | + |
| 7 | +2. Select your region, and then hit "Let's get started!" |
| 8 | + |
| 9 | +3. Skip the tutorial (or don't) and go to your dashboard. |
| 10 | + |
| 11 | +4. Click "Go to your dashboard". |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +5. Agree to Terms and Conditions. |
| 16 | + |
| 17 | + |
| 18 | +6. Click "API Keys" on the left navbar. |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +7. Change your keys accordingly (name of Algolia key -> name of our application key): |
| 23 | +* `Application ID -> ALGOLIASEARCH_APPLICATION_ID` |
| 24 | +* `Search-Only API Key -> ALGOLIASEARCH_SEARCH_ONLY_KEY` |
| 25 | +* `Admin API KEY -> ALGOLIASEARCH_API_KEY` |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +8. Done! |
| 30 | + |
| 31 | +*** |
| 32 | +*** |
| 33 | +*** |
| 34 | + |
| 35 | +## Algolia Email Sign Up |
| 36 | +1. [Click this link and sign up for an account with your email address.](https://www.algolia.com/users/sign_up) |
| 37 | + |
| 38 | + |
| 39 | +2. Fill out your name and what describes you the most. |
| 40 | + |
| 41 | + |
| 42 | +3. Choose your datacenter/region closest to you. |
| 43 | + |
| 44 | + |
| 45 | +4. Skip the step asking about your project. |
| 46 | + |
| 47 | + |
| 48 | +5. Complete the onboarding flow and click "Go to dashboard". |
| 49 | + |
| 50 | + |
| 51 | +6. Click "API Keys" on the left navbar. |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | +7. Change your keys accordingly (name of Algolia key -> name of our application key): |
| 56 | +* `Application ID -> ALGOLIASEARCH_APPLICATION_ID` |
| 57 | +* `Search-Only API Key -> ALGOLIASEARCH_SEARCH_ONLY_KEY` |
| 58 | +* `Admin API KEY -> ALGOLIASEARCH_API_KEY` |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +8. Done! |
| 63 | + |
| 64 | +That's it! You should try logging in with development, it should work. If it doesn't, let us know via an issue or in the contributors channel! |
| 65 | + |
| 66 | +### _The following are optional, but are probably things you'll run into. That said, if you're working on tests and other things, you shouldn't need these._ |
| 67 | + |
| 68 | +### For authentication, you can choose Twitter, GitHub, or both. |
| 69 | + |
| 70 | +# Twitter App |
| 71 | +1. [Click this link and sign in/sign up for a Twitter account.]((https://apps.twitter.com)) Note that your Twitter account will need a phone number linked to it in order to create an app. |
| 72 | +2. Create a new app, and fill out the form, like the following example image:  |
| 73 | + |
| 74 | +The only important field is the "Callback URL" `http://localhost:3000/users/auth/twitter/callback`, which redirects you properly to `localhost:3000` when signing in. |
| 75 | + |
| 76 | +3. Once done, go to your app's settings, and fill in the terms of service `http://dev.to/terms` and privacy policy URL `http://dev.to/privacy`: |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | +4. Once done, go to your app's permissions, and check the "Request email addresses from users" box. |
| 81 | + |
| 82 | + |
| 83 | +5. Change your keys accordingly: (name of Twitter key -> name of our application key): |
| 84 | +- `Access Token -> TWITTER_KEY` |
| 85 | +- `Access Token Secret -> TWITTER_SECRET` |
| 86 | +6. Done! |
| 87 | + |
| 88 | +# GitHub |
| 89 | +1. [Click this link and sign in/sign up for a GitHub account.](https://github.com/settings/applications/new) |
| 90 | +2. Once signed in, create a new OAuth app. Here's an example; the URLs must match the example: |
| 91 | + |
| 92 | +3. Change your keys accordingly; (name of GitHub key -> name of our application key): |
| 93 | +- `Client ID -> GITHUB_KEY` |
| 94 | +- `Client Secret -> GITHUB_SECRET` |
| 95 | +4. Done! |
| 96 | + |
| 97 | +# Stream |
| 98 | +1. [Sign up for an account with this link](https://getstream.io/accounts/signup/), using either your email or GitHub. |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | +2. Click "View Dashboard" at the top right corner. |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | +3. **In the next page, click "Add New Feed Group".** |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | +<hr> |
| 111 | + |
| 112 | +4. Add a new feed group with the type "Notification" and name it `notifications` (case sensitive). |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | +5. Make sure you have a feed group with the type "Flat" and named `user` (case sensitive). You probably do, but if you don't, create one like you did with the notifications feed group. |
| 117 | + |
| 118 | +6. Change your keys accordingly: (name of Stream key -> name of our application key): |
| 119 | + - `Key -> STREAM_RAILS_KEY` |
| 120 | + - `Secret -> STREAM_RAILS_SECRET` |
| 121 | + - `"https://us-east-api.stream-io-api.com/api/v1.0/" -> STREAM_URL` |
| 122 | + |
| 123 | +7. Done! |
0 commit comments