OmniStack Week (8) by: RocketSeat
Ps: You'll need NodeJs to run this project.
git clone https://github.com/betodoescher/OmniStack-8.git
cd OmniStack-8
cd backend
yarn dev
Wait all dependencies install in /node_modules
, after finish just run:
yarn start
ToDo list (BackEnd):
- Fix bug in /devs, if don't have deslikes || likes will crash list
Start
cd frontend
yarn install
Wait all dependencies install in /node_modules
, after finish just
yarn start
Before go ahead with this tutorial, I recomend you download Android Studio, and run a Hello World
Ps: Running on device is easier than emulator ;-)
After run Hello World, you'll need install react-native-cli
in global mode:
yarn global react-native-cli
Now install all dependencies install in /node_modules
cd tindev
yarn install
Now just run this command:
react-native run-android
Ps: Make sure you Android is connected to USB with Remote Debugging Android Devices
, more info here:
https://developers.google.com/web/tools/chrome-devtools/remote-debugging/?hl=pt-br
You'll see this screen in Your Android Device if everthings work:
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: No connected devices!
First check if you device is listed here:
adb devices
Your device should be listed like this:
List of devices attached
0049375864 device
If not,
Go in your android, Options > Developer
Disable and enable options:
1 - Developer Mode
2- Usb Debugging Android
And try adb list.
'adb' is not recognized as an internal or external command,
operable program or batch file.
Confirm if adb exists in folder:
C:\Users\Beto\AppData\Local\Android\sdk\platform-tools
-> Ps: 'Beto' should change...
Then just add in your PATH env:
C:\Users\YOURUSER\AppData\Local\Android\sdk\platform-tools
Installations during the project - all new installations needed to run the command react-native run-android
# app
yarn add react-navigation react-native-gesture-handler react-native-reanimated
yarn add @react-native-community/async-storage
yarn add socket.io-client
# frontend
yarn add socket.io-client
# backend
yarn add socket.io