Skip to content

A application which summarises all the restautant in Location near you or the location provided utilizing Yelp Fusion API, Google Map JS API, Places API.

License

Notifications You must be signed in to change notification settings

shishir99111/react-restaurant-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Restaurant Finder

An application which fetches & summarises all the restaurants in "Location near you" or the Location entered. Utilizing Yelp Fusion API, Google Map JS API, Places API.

This project was bootstrapped with Create React App.

Desktop Version

Desktop Version

Mobile Version

Mobile Version

Requirement

  • Nodejs ^v8.x.x

Setup Env config

> cd <PWD>/src/Config
> nano index.js
    module.exports = {
        SEARCH_API_ENABLED: false,
        GOOGLE_API_KEY: '<YOU GOOGLE MAP API KEY HERE>',
        YELP_SERVER: 'http://localhost:4000',
    }
> cd <PWD>/server
> nano .env
    PORT=4000
    NODE_ENV=PRODUCTION
    YELP_API_KEY='<YOUR YELP KEY>'

Setup Prod Codebase

> Go to project directory
> npm install
> npm run build // Production mode
> cd server     // In new terminal
> npm install
> node index.js
> Go to http://localhost:4000

Setup Dev Codebase (Considering Env config completed)

> Go to project directory
> npm install
> npm start     // Development mode
> cd server     // In new terminal
> npm install
> node index.js // start server for yelp service (to avoid CORS Issue)
> Go to http://localhost:3000

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 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.

ToDO

  • Add Redux
    • Search box for Mobile Header
    • Use my location function in Mobile Header Button
    • Add Full scale view on Mobile view when toggle is ON for Show map.
  • Loading spinner on "app first load" & "use my location" functionality.

About

A application which summarises all the restautant in Location near you or the location provided utilizing Yelp Fusion API, Google Map JS API, Places API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published