shahzaibanwar009 / react-app-simple-restaurant-app

A Simple Restaurant App using MERN stack (MongoDB, Express JS, React JS, Node JS) to search restaurants, listing them

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-app-simple-restaurant-app

A Simple Restaurant Application using React JS, a JavaScript library to make awesome UI by Facebook, Node JS, Express JS and MongoDB.

This application uses React JS component oriented UI creation paradigm. All components are written in JSX and ES6 style and are combined to get a single build for production purpose using Webpack 4.

ES6 module creation along with import /export is used. Babel is used to transpile all JSX code to vanilla JavaScript code. To install all the dependecies npm is used.

Back end is implemented using Node JS, Express JS and MongoDB. Atlas, the Cloud version of MongoDB is used.

For UI creation HTML5 and CSS3 are used. Grid, the new feature of CSS3 is used for layout creation purpose.

This is a responsive web application for viewing in both Mobile and Desktop.

Features

  • This is Simple Restaurant Application
  • It is a Full Stack Application
  • All the restaurant details namely cusines, establishment type, address, locality, rating, cost for two persons are stored in the MongoDB Atlas. This is a free/ shared account on Atlas. So Please use it wisely

  • Searching facility using locality, name and cuisines
    • Searching can be done from two places - the Search box and clicking on the several features of a restaurant like name, locality and so on
  • Sorting of the searched restaurants can be done using price both ascending and descending order and rating in descending order only
  • Filters namely cost for two persons, establishment type, locality can be applied on a list of searched results
    • Only one filter can be selected from a particular category
    • Click on an active filter will deselect the filter

  • Viewing the details of a restaurant can be done clicking the photo/ logo of the restaurant or clicking the View Details button
  • Viewing the details of all restaurants can be done by clicking the <- of the individual restaurant page
  • Listing of restaurants both all and individual are done using React Router
  • All the restaurant details are stored in the database i.e. persistant
  • All the currencies are shown in INR ₹ format

Installation

  1. Clone the repository using git clone https://github.com/anijitsahu/react-app-simple-restaurant-app.git from Git Bash / Command Prompt
  2. Navigate inside the directory by cd react-app-simple-restaurant-app
  3. Install all the necessary dependecies by using npm install
  4. Navigate to the directory cd server
  5. Run the server by node server.js
  6. Open the web browser and typehttp://localhost:3000 in the address bar to load the application
  7. Search restaurants using name, cuisines, locality etc
  8. Filter the search results by cost for 2 persons, establishment type and locality
  9. Sort the results by price and rating
  10. View details of each restaurant by clicking View Details button

tested with Google Chrome v70 and Mozilla Firefox Developer Editon

Screenshots

Some screens of the application is given below for better understanding.

Desktop as well as Mobile version of the screenshots are given side by side.

Home Screen

Entering search text

Loading results

When results are loaded

View Individual restaurant

Sorting with ascending prices

Apply the filter bar

About

A Simple Restaurant App using MERN stack (MongoDB, Express JS, React JS, Node JS) to search restaurants, listing them


Languages

Language:JavaScript 82.2%Language:CSS 17.8%