Sign inSign up

siddhantprateek/restro-web

By siddhantprateek

•Updated over 2 years ago

Restaurant App - It's not just food , It's an experience. šŸ˜‡

Image
0

277

siddhantprateek/restro-web repository overview

⁠Resto

Restaurant App - It's not just food , It's an experience. šŸ˜‡

⁠Tech Stack

  • React
  • Typescript
  • Mirage Js - Mock Server

⁠Objective

  • Within the menu, users have the option to filter items by searching for tag values or by conducting a regular search using item names. While the current selection of tags does not facilitate the desired data query, users can achieve a similar outcome through the search bar.

⁠Setting up project for development using Docker

  • To run the application locally, you have two options: either create the Docker image using Dockerfile or utilize docker-compose. Ensure that Docker is installed on your local machine. Or Visit Install Docker⁠
docker build -t resto-web . 
# or
docker-compose up -d

If prefer cloning the repository and run locally then follow bellow steps

git clone https://github.com/siddhantprateek/resto
cd resto
npm install | bun install # install dependenies(npm or bun)
npm run start # run the react application on port 3000

⁠API Documentation

  • The base URL for api is https://restaurant.service/api

EndpointAPI Description
GET /allFetch entire restaurant data
GET /chefFetch chef details containing name, bio and signature_dist
GET /awardsRetrieves Array of Awards(award, origanization, year)
GET /ambinenceRetrieves about restaurant ambinence description
GET /food/menuFetch all the food Items
GET /initiativesRetrieves all Initiative taken by restaurant
GET /reviewsFetch customer reviews(customer_name, comment, rating)
GET /eventsFetch Upcoming Events(name,date, description)
GET /websiteFetch website Url
GET /socialsFetch All online presence Urls (facebook, Instagram, Twitter)

⁠Website Navigation routes

URl: https://resto-steel.vercel.app/Description
PATH /Home Page
PATH /aboutDetails about Restaurant and Chef
PATH /menuShows All the Available Food Items
PATH /eventsShows all the Upcoming Events
PATH /initiativesShows All the initiatives taken by Restaurant for Sustainability
PATH /recipesShows detailed Food Items

⁠Application Folder structure

  • Inside Source folder src
.
ā”œā”€ā”€ App.css
ā”œā”€ā”€ App.test.tsx
ā”œā”€ā”€ App.tsx # application Entry point
ā”œā”€ā”€ assets # assets used in components and pages
ā”œā”€ā”€ components # All Components
│   ā”œā”€ā”€ common # All repeated Components
│   ā”œā”€ā”€ footer
│   ā”œā”€ā”€ header
│   ā”œā”€ā”€ hero
│   ā”œā”€ā”€ index.ts # components default export
│   └── reservations
ā”œā”€ā”€ context # !Not Used, contains Global Context
ā”œā”€ā”€ data 
│   └── restaurantData.json # dummy data
ā”œā”€ā”€ index.css
ā”œā”€ā”€ index.tsx
ā”œā”€ā”€ mirage # mock server
ā”œā”€ā”€ pages # contains all routing pages

⁠Author

Siddhant Prateek Mahanayak⁠

Tag summary

Content type

Image

Digest

sha256:1995a079a…

Size

192 MB

Last updated

over 2 years ago

docker pull siddhantprateek/restro-web