Skip to content

BlogWriting is a simple Firebase React Web Application that mainly focuses on Firebase Setup, Configuration, Authentication, Provider, and Firestore Database to retrieve the data from the database and then display, create, and delete the data, using React-Loading-Skeleton, TailwindCSS, JavaScript, HTML and deploy on Netfily.

Notifications You must be signed in to change notification settings

arnobt78/BlogWriting-Firebase--ReactJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot 2024-09-03 at 23 22 58 Screenshot 2024-09-03 at 23 23 38 Screenshot 2024-09-03 at 23 24 01

BlogWriting-Firebase-ReactWebpage

BlogWriting is a simple Firebase React Web Application that mainly focuses on Firebase Setup, Configuration, Authentication, Provider, and Firestore Database to retrieve the data from the database and then display, create, and delete the data, using React-Loading-Skeleton, TailwindCSS, JavaScript, HTML and deploy on Netfily.

The webpage can be seen by using this URL: https://blogwriting-arnob.netlify.app

To Install Dependences

Before launching this web application, be sure to install all required dependencies, which are listed in the package.json file.

To install all dependences, run this command from your project folder: npm install

To Install NodeJS

Make sure you have NodeJS installed in your machine first, The installation instructions are here: https://nodejs.org/en/

To Install React-Router

Open up your terminal and bootstrap a new React app by: npx create-react-app

Then go to that project folder, and write this command via terminal from your project folder: npm i react-router-dom

(For more details, visit: https://reactrouter.com/en/main and https://www.npmjs.com/package/react-router-dom )

To Install Firebase

Open up your terminal from your project folder and run: npm install --save firebase@9.10

Note: You must install firebase version 9.10, beacuse the later versions can occure error while initializing firebase.

(For more info, visit: https://www.npmjs.com/package/firebase )

To Setup .env File

you must create an .env file in your project folder and save your API key or other sensetive info.

Example: REACT_APP_API_KEY=your_firebase_api_key

REACT_APP_AUTH_DOMAIN=your_firebase_auth_domain

REACT_APP_PROJECT_ID=your_firebase_project_id

REACT_APP_STORAGE_BUCKET=your_firebase_storage_bucket

REACT_APP_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id

REACT_APP_APP_ID=your_firebase_app_id

(For more info, visit: https://www.npmjs.com/package/firebase )

To Deploy on Netlify (Frontend-Deployment)

Visit: https://app.netlify.com/

  • Login using GitHub

  • Click on ‘Import from Git’

  • Connect to Git provider > Github

  • If the desired repository is not shown, click on ‘Configure the Netlify app on GitHub’

  • Repository Access > All Repository

  • Select the repository

  • Click on ‘Deploy site’

Note: Deploying Process will take 2-5 minutes to be active on Netlify.

Error: Check the log if you get an error > apply changes to the codebase > push them on ‘main’ branch.

To set Environment Variable:

  • Site settings > Build & deploy > Environment > Environment variables

https://docs.netlify.com/configure-builds/environment-variables/

(Make sure to push new changes after setting env to make them effective)

Note: You must add the domain name to your Firebase: Authentication > Settings > Authorized domains > Add domain

To change domain name:

  • Change domain name on Netlify through ‘Site Settings’

404 Page Not Found Error:

To Install React-Loading-Skeleton

Open up your terminal from your project folder and run: npm install react-loading-skeleton

(For more information, visit: https://github.com/dvtng/react-loading-skeleton )

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

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!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

BlogWriting is a simple Firebase React Web Application that mainly focuses on Firebase Setup, Configuration, Authentication, Provider, and Firestore Database to retrieve the data from the database and then display, create, and delete the data, using React-Loading-Skeleton, TailwindCSS, JavaScript, HTML and deploy on Netfily.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published