{"id":17353466,"url":"https://github.com/chetannada/foodfire-server","last_synced_at":"2025-10-28T10:05:39.749Z","repository":{"id":215980722,"uuid":"740165618","full_name":"chetannada/FoodFire-Server","owner":"chetannada","description":"A FoodFire-Server (Node.js web server) for FoodFire app - A Namaste React Course Project","archived":false,"fork":false,"pushed_at":"2025-04-17T19:11:43.000Z","size":156,"stargazers_count":7,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-02T01:37:51.012Z","etag":null,"topics":["expressjs","foodfire","foodfire-app","foodfire-server","namaste-react","nodejs","nodejs-server","webserver"],"latest_commit_sha":null,"homepage":"https://foodfire.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chetannada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-07T18:01:28.000Z","updated_at":"2025-04-18T10:55:21.000Z","dependencies_parsed_at":"2025-04-17T19:49:35.064Z","dependency_job_id":"1a628f00-b881-4984-b2f9-a20a76bdebfc","html_url":"https://github.com/chetannada/FoodFire-Server","commit_stats":null,"previous_names":["chetannada/foodfire-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chetannada/FoodFire-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chetannada%2FFoodFire-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chetannada%2FFoodFire-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chetannada%2FFoodFire-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chetannada%2FFoodFire-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chetannada","download_url":"https://codeload.github.com/chetannada/FoodFire-Server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chetannada%2FFoodFire-Server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281418225,"owners_count":26497758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expressjs","foodfire","foodfire-app","foodfire-server","namaste-react","nodejs","nodejs-server","webserver"],"created_at":"2024-10-15T17:16:53.648Z","updated_at":"2025-10-28T10:05:39.720Z","avatar_url":"https://github.com/chetannada.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌐 FoodFire Server\n\nA FoodFire Server (Node.js web server) that fetches data from a third-party (Swiggy) API (Fix the CORS Issue) and exposes it to a client [🚀 FoodFire ](https://foodfire-app.netlify.app/) App 😍.\n\n🍁 [FoodFire App](https://foodfire-app.netlify.app/) is part of [Namaste React Live Course](https://namastedev.com/learn/namaste-react?_aff=946684804112) and Github Repository for this App is [Namaste-React 💜](https://github.com/chetannada/Namaste-React) ️\n\u003cbr/\u003e\n\n## 🔥 Clone this Repository\n\nYou need to write the following commands on the terminal screen(in vscode) so that you can run this project locally.\n\n```bash\n  git clone \"https://github.com/chetannada/FoodFire-Server.git\"\n```\n\nGo to the project directory\n\n```bash\n  cd FoodFire-Server\n```\n\nInstall dependencies\n\n```bash\n  npm install\n```\n\nStart the server\n\n```bash\n  npm run start\n```\n\nThis application should now be running on `localhost`. If you want to Fork repository and want to run locally, follow this guidelines [Fork and Clone Github Repository](https://docs.github.com/en/get-started/quickstart/fork-a-repo)\n\n💫 Test the FoodFire Server Locally in your FoodFire React App then use this domain name (`http://localhost:5000/`) if the Server is running on a `5000` Port:\n\n```javascript\nconst response = await fetch(\n  `http://localhost:5000/api/restaurants?lat=12.9351929\u0026lng=77.62448069999999\u0026page_type=DESKTOP_WEB_LISTING`\n);\n\nconst data = await response.json();\n```\n\n## 🔮 Deploy the FoodFire server\n\nOnce you have tested the FoodFire server locally, you can deploy it to a production environment by following these steps.\n\n1. Create an account on [Render](https://render.com/) if you haven't already.\n2. Click on the `New +` button and select `Web Service` from the dropdown menu.\n3. `Connect` to your own GitHub repository (node server that you have created your own) which you want to deploy.\n4. In the `Settings` tab, scroll down to the `Environment Variables` section and add all environment variables from `.env` file.\n5. Wait for the deployment to finish. Once it's done, you should see a success message and a link to our server URL. For Instance: `http://YourOwnServerName.onrender.com`\n6. Click on the link URL to test our server.\n\nNote: Now that our server is deployed on [Render](https://render.com/) you can change the API URL in react app to the domain in which the server is deployed. For instance: if your server is hosted in `http://YourOwnServerName.onrender.com`, in the react app while sending a request to API, use this domain name :\n\n```javascript\nconst response = await fetch(\n  `http://YourOwnServerName.onrender.com/api/restaurants?lat=12.9351929\u0026lng=77.62448069999999\u0026page_type=DESKTOP_WEB_LISTING`\n);\n```\n\n## 🔗 Let's Connect\n\n[![linkedin](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/in/chetannada/)\n[![twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white)](https://twitter.com/chetannada)\n[![discord](https://img.shields.io/badge/Discord-5865F2?style=for-the-badge\u0026logo=discord\u0026logoColor=white)](https://discordapp.com/users/916005177838956555)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchetannada%2Ffoodfire-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchetannada%2Ffoodfire-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchetannada%2Ffoodfire-server/lists"}