Skip to content

Commit

Permalink
website hosted and readme file updated
Browse files Browse the repository at this point in the history
  • Loading branch information
masudcodex committed Nov 11, 2022
1 parent 272eada commit 8f76970
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 79 deletions.
19 changes: 19 additions & 0 deletions .firebase/hosting.YnVpbGQ.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
favicon.ico,1667839367125,78f8e9b3f72d45af7cd937ab0abb5316b8e5cd05cf9c7c9a8b9c31933245f7a1
manifest.json,1668106217855,aff3449bdc238776f5d6d967f19ec491b36aed5fb7f23ccff6500736fd58494a
robots.txt,1667839713978,bfe106a3fb878dc83461c86818bf74fc1bdc7f28538ba613cd3e775516ce8b49
index.html,1668172042871,204e90a18dfb3d1a355c4c15cedbbed7f3a37060c6b015bc62e25a068c7a1929
static/js/787.d6cc8b2e.chunk.js,1668172042888,c81e5ef4041fc3b63b57555858db69e79eb3f43d1fd04cd695303eac386716e3
asset-manifest.json,1668172042891,a001fae6b4612a38cef09b9251c3723f47c407ce11fed2f2df858adfe6c8442e
static/js/main.ded75071.js.LICENSE.txt,1668172042888,29fba471d481398619ffd50250e8431add61c7c8208f77fc9b05cd1bf9708876
static/js/787.d6cc8b2e.chunk.js.map,1668172042888,2af04c7376b739ef12441d62c8154b02ef9af4061b5132e02756888aa169759a
static/css/main.9aacbda6.css.map,1668172042888,b721fe815e07511fb9a76d1aee858990629552ae0f76011364f51cdaf274bd41
static/css/main.9aacbda6.css,1668172042888,6a8540a6ccd4daac2c9e69cfe5adefa7ac00d0283703978ad9f5288d8eb06070
static/media/userBanner.ab387e18f2eb2032a114.jpg,1668172042888,814868c42cd2fb4efc0a66f44f27837cba175c0588c1a5f5b2567df5e2521168
static/media/login.e171aeb8b4b3a1e315f9.png,1668172042887,b9649ee5b2355f662a8a013254ae388cbf614f16fb320d0968fbcc8ede6cd51c
static/js/main.ded75071.js,1668172042888,ca4ea4d8d8cf45b883489a9441c707f3d72056f5d42a874e846e3f947a089ee5
static/media/blog-banner.2ad740afc79b1e9a7d8d.jpg,1668172042978,64b9c8a7b8a21bf1723d65c20d60be0f75ec9cfd54dc4e5afa8fe881ed112469
static/media/u594-hero.d6cc2d8a3a169b6a29f2.jpg,1668172042887,ea34ab8b9e1532197d0709450d47f3b3439bc0f917537b83d7d04cdf08eb8633
static/media/404.857175ebcce242f08de4.jpg,1668172042888,ff845bed0081ce8403b707fb7e4d694e2061f73e0d512e7f599babdacd94b444
static/media/register.287e0746ba3a15122073.jpg,1668172042888,8c6a6545563b9c9cf61dcdf976e0c4c4df44111574edb9d1f4cc8d957f118a6d
static/media/foodmonster-banner.77b618b43fb741124dd4.png,1668172042888,56d3f28868c369253cf00876b8ae0c5dc719b0b8eba844e2ec995f340942a0fa
static/js/main.ded75071.js.map,1668172042892,65fdad0c7998dc1771560c59a05fa94ffd807ff1c180d69d20e642e118102043
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "food-monster-e9a9c"
}
}
98 changes: 28 additions & 70 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,28 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [https://localhost:3000](https://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](https://facebook.github.io/create-react-app/docs/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](https://facebook.github.io/create-react-app/docs/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](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](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](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](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](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](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](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
# Food Monster (React website) V0.1.0

### Live project link - https://food-monster-e9a9c.web.app/
### Client side gitHub repository link - https://github.com/Porgramming-Hero-web-course/b6a11-service-review-client-side-masudcodex.git
### Server side gitHub repository link - https://github.com/Porgramming-Hero-web-course/b6a11-service-review-server-side-masudcodex.git

## Developed with
- React - A javascript library for building user interfaces
- Create react app - A quick method to start developing a react application.
- [React Router](https://reactrouter.com/) - V6.4.1
- Tailwind CSS
- Daisy UI
- Firebase - for authentication
- Authentication with Email & Password
- Google
- [React hot toast](https://react-hot-toast.com/) - has been used to show success & error notifications
- [React Icons](https://react-icons.github.io/react-icons/) has been used for icons
- React Photo View - has been used to zoom in photo
- MongoDB has been used to host data, get and delete data


## Getting Started

Follow the following steps to get development environment running.

- git clone https://github.com/Porgramming-Hero-web-course/b6a11-service-review-client-side-masudcodex.git - to clone the repository from github
- npm install - to install node modules
- npm start - to continue building applications
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
2 changes: 1 addition & 1 deletion src/api/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const setAuthToken = (user) => {
}
//Get JWT token

fetch('http:https://localhost:5000/jwt',{
fetch('https:https://food-monster-server.vercel.app/jwt',{
method: 'POST',
headers: {
'content-type': 'application/json'
Expand Down
4 changes: 2 additions & 2 deletions src/components/Pages/Services/ServiceSingle/ServiceSingle.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ServiceSingle = () => {
serviceImgURL: image_url,
details: review
}
fetch('http:https://localhost:5000/reviews/', {
fetch('https:https://food-monster-server.vercel.app/reviews/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand All @@ -46,7 +46,7 @@ const ServiceSingle = () => {
}

useEffect(()=>{
fetch(`http:https://localhost:5000/reviews/${_id}`)
fetch(`https:https://food-monster-server.vercel.app/reviews/${_id}`)
.then(res=> res.json())
.then(data=> setReviews(data))
},[reviews])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const ReviewCollection = () => {
const {user} = useContext(AuthContext);
const [userReviews, setUserReviews] = useState([]);
useEffect(()=>{
fetch(`http:https://localhost:5000/${user?.uid}/reviews`)
fetch(`https:https://food-monster-server.vercel.app/${user?.uid}/reviews`)
.then(res=>res.json())
.then(data=> setUserReviews(data))
},[userReviews])


const handleDelete = (_id) => {
fetch(`http:https://localhost:5000/reviews/${_id}`,{
fetch(`https:https://food-monster-server.vercel.app/reviews/${_id}`,{
method: 'DELETE'
})
.then(res=>res.json())
Expand Down
8 changes: 4 additions & 4 deletions src/routes/Router/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ const Router = createBrowserRouter([
children: [
{
path: "/",
loader: async ()=> fetch('http:https://localhost:5000/homeservices'),
loader: async ()=> fetch('https:https://food-monster-server.vercel.app/homeservices'),
element: <Home></Home>
},
{
path: '/services',
loader: async ()=> fetch('http:https://localhost:5000/services'),
loader: async ()=> fetch('https:https://food-monster-server.vercel.app/services'),
element: <Services></Services>
},
{
path: '/services/:_id',
loader: async({params})=>fetch(`http:https://localhost:5000/services/${params._id}`),
loader: async({params})=>fetch(`https:https://food-monster-server.vercel.app/services/${params._id}`),
element: <ServiceSingle></ServiceSingle>
},
{
Expand Down Expand Up @@ -61,7 +61,7 @@ const Router = createBrowserRouter([
},
{
path: '/my-reviews',
loader: async()=>fetch('http:https://localhost:5000/reviews'),
loader: async()=>fetch('https:https://food-monster-server.vercel.app/reviews'),
element: <PrivateRoute><ReviewCollection></ReviewCollection></PrivateRoute>
}
]
Expand Down

0 comments on commit 8f76970

Please sign in to comment.