Skip to content

imrudrakarmakar/airbnb-clone-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npx create-react-app ./

npm install -g firebase-tools

npm install @material-ui/core

npm install @material-ui/icons

To use [Date Picker] (https://www.npmjs.com/package/react-date-range)

npm i react-date-range

npm i react date-fns

For search action use React Router DOM ()

npm i react-router-dom

Firebase Setup

https://firebase.google.com/
Login with your Gmail Account
Get started -> Add project -> Enter your project name -> Continue x 2 -> Create project

Firebase Hositng
Register app -> Tick mark on the Firebase hositng -> Install Firebase

npm install -g firebase-tools

npm start

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.

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.

Deployment

firebase login

firebase init

firebase deploy

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