Skip to content

feat: add Express server for API proxying and update restaurant/menu …#19

Open
SaketKothari wants to merge 1 commit into
mainfrom
feat/added-server-logic
Open

feat: add Express server for API proxying and update restaurant/menu …#19
SaketKothari wants to merge 1 commit into
mainfrom
feat/added-server-logic

Conversation

@SaketKothari

@SaketKothari SaketKothari commented Jun 14, 2026

Copy link
Copy Markdown
Owner

…fetching logic

  • Implemented a new Express server in server.js to handle API requests to Swiggy.
  • Added concurrently to run both the React app and the server simultaneously.
  • Updated package.json to include new scripts for starting the server and development.
  • Refactored restaurant and menu fetching logic in useRestaurant.js and useRestaurantMenu.js to handle various response structures from Swiggy.
  • Changed API endpoints in constants.js to point to the local server instead of using ThingProxy.
  • Improved error handling and session management in the server code.
  • Updated the RestaurantMenu component to handle loading states more effectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant