shortcut way is just download whole project install npm >go inside project directory > npm start
Install nodejs npm npx
sudo apt update
sudo apt install nodejs npm
sudo apt install npm
npm install -g npx
npx create-react-app [react-app/YourAppName]
cd react-app
npm start
Then open http://localhost:3000/ to see your app.
stop ctrl+c to add dependencies
Installing Libraries & framework
npm install axios
npm install sweetalert --save
npm install react-custom-roulette
replace src and public folder in react-app and copy the package.json then do npm install
npm start
open http://localhost:3000/ to run app again.
The goal is to design a web app that allows the user to spin by tapping ‘Spin’and get the reward mentioned on the segment of wheel where it stops
React JS(UI),
axios: To handle API calls
sweetAlert, -Notify the user about pize won
npm: Package manager
I used a Customizable React roulette wheel plugin with spinning animation from here https://www.npmjs.com/package/react-custom-roulette#wheeldata
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:8080 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
I learned about spreadsheet API from here here: https://www.youtube.com/watch?v=M0Jtp_0e70c