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:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
https://creativedesignsguru.com/how-to-configure-eslint-prettier-react/ npm i eslint --save-dev npm install eslint-config-airbnb-typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser --save-dev
git push https://egangotri:[email protected]/eGangotri/egangotri-react-daily-work-report.git insert your Tokern in PAT above
https://www.geeksforgeeks.org/how-to-deploy-react-project-on-firebase/
First time npm install -g firebase-tools firebase login A Chrome browswe will open - use e*tr@gmail acct. firebase init Are you ready to proceed? Yes ? Which Firebase features do you want to set up for this directory? Press Space to select features, then Enter to confirm your choices. (Press to select, to toggle all, to invert selection, and to proceed) Choose: () Hosting: Configure files for Firebase Hosting and (optionally) set up GitHub Action deploys
? What do you want to use as your public directory? build
? Configure as a single-page app (rewrite all urls to /index.html)? (y/N) y
? Set up automatic builds and deploys with GitHub? (y/N)
What do you want to use as your public directory? public
Configure as a single-page app (rewrite all urls to /index.html)? Yes
Setup automatic builds No
yarn run build firebase deploy *** note you need to be logged in with the correct firebase email otherwise firebase deploy will fail
Code will be viewable below: https://egangotri-daily-work-report.web.app
###ENvironment Variables
//can be prod or dev REACT_APP_DEV_ENV=prod REACT_APP_FAST_REFRESH=false REACT_APP_BACKEND_SERVER_PROD=https://XXXXXXXX.com/ REACT_APP_BACKEND_SERVER_DEV=http://localhost:80/