Start the App - nikhil-raina/info.me GitHub Wiki
Running Process
React-Native can be a little annoying if you do not know what you are doing and just blindly end up following some random lines of code to run your program. This Page is going to try to ensure that it gives a brief understanding of what you would be doing to run your code and why you would be doing something to run your code the way you would be doing.
- NEVER WORK DIRECTLY ON TO THE MASTER OR MAIN BRANCH UNLESS ABSOLUTELY NEEDED.
- Branch to a new branch or old branch to start your work.
- Open up the terminal or use the internal terminal in VS Code. Using the internal terminal makes things easy as it allows less number of windows to be up and gives an easier way of navigation.
- Navigate to the root of the folder, that is inside of
portfolio/
directory. - Enter
yarn install
. This will install all the necessary plugins that are in thepackage.json
folder to ensure that the code you end up typing works accordingly the way you want it to and does not recognise something else. This could take up some amount of time. Go for a small walk or drink some water during this time. Every time you end up creating a new branch to do your work, there is a good chance that you would not have to do this every time. - After the installation is done, enter
yarn start
. This will start the react-native package on your system. This is an important step to always do before trying to run your app. Since React Native is a web-based programming language, it needs a host of some kind to deploy the package. Here, you will be working on the local system therefore you will be using yuor local host. You will see the React Native symbol appear on the terminal. Iat is advised to click on the+
button on the top right corner of the terminal window to create a new terminal window. This is where you will be doing all the necessary testing and other navigation within the directories and what not. - On the new terminal, navigate to the root directory again. [Mention Android setup and iOS setup]