Project developed during the challenge of Chapter II - React Native Trail with social login with Twitch. The entire login and logout flow was implemented using Twitch's OAuth
- Social login with Twitch.
- Refresh the screen without reloading the application.
- Lists all the live channels you follow.
- Lists the most watched channels on Twitch.
- Logout to clear application login information.
- Open your computer's terminal.
- Access your projects folder.
- Once inside your projects folder, execute the commands below:
# To download the project to your computer
$ git clone https://github.com/gabrielmerigo/stream-data.git
# Enter project folder
$ cd stream-data
# To download project dependencies
$ yarn
# Open with vscode editor
$ code .- Ready, now just test and make the changes you want.
- Copy and rename the
.env.example tofile to.env. - Go to Twitch and log into your account, or if you have one, log in.
- Go to the link https://dev.twitch.tv/console/apps/create to register a new application.
- Name: Give your application a name.
- OAuth redirect URLs: https://auth.expo.io/@your-user/yourAppName
-
- Grades:
-
- @your-user: To get your username access your profile https://www.twitch.tv/settings/profile.
-
- To get the name of your application, access the
app.jsonfile in the"slug": "streamData",statement. If you don't have this line, insert it.
- To get the name of your application, access the
- Category: Select
Application Integration - Check that you are not a Droid.
- Click on the Create button.
- After this step you will see your client ID, just copy it to the
.envfile you copied and renamed before.
- Now inside the application folder by the terminal, execute the command below:
# This command makes the project available to be opened by the expo application that
# you need to install on your physical device or emulator.
$ expo start- Then, with the Expo Go application installed on your smartphone, simply read the QRCode that appears on your computer screen.
Note: Your mobile and computer must be on the same wifi network and in the same IP range for the app to work between your computer and your mobile.
If you had any questions, you can contact me here. gabriel.merigo.dev.
- Consult the LICENÇA for more information.
Made with 💜 by Gabriel Merigo

