Uploading Code to GitHub Repository

Upload Code to a GitHub Repository

After building and testing our React application locally, the final step is to deploy it so that it’s hosted online and accessible to anyone. We will deploy the app using Netlify, a hosting service that is very friendly to React apps and allows continuous deployment via GitHub. Since we have a Netlify account ready, we’ll proceed with deployment.

You can create a repository in GitHub and then add the random-joke-generator project folder to that. Don’t worry if you are clueless about it, we have added our GitHub repo down below, you can refer to that if you have any doubts.

Or you can create and add a repo through your command prompt by following the below commands:

git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/yourusername/random-joke-generator.git
git push -u origin main

GitHub Link: Temperature Converter Application