{"id":29024683,"url":"https://github.com/dharun37/recipe-finder","last_synced_at":"2026-04-09T17:54:20.201Z","repository":{"id":301174662,"uuid":"1008242553","full_name":"Dharun37/Recipe-Finder","owner":"Dharun37","description":"A secure full-stack app to manage your favorite recipes, built with React, Node.js, Express, and MongoDB","archived":false,"fork":false,"pushed_at":"2025-06-25T13:51:47.000Z","size":56198,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-25T14:47:07.023Z","etag":null,"topics":["authentication","express","fullstack","jwt","mongodb","nodejs","react","recipe-app"],"latest_commit_sha":null,"homepage":"","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/Dharun37.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":"2025-06-25T08:43:29.000Z","updated_at":"2025-06-25T13:58:11.000Z","dependencies_parsed_at":"2025-06-25T14:58:45.437Z","dependency_job_id":null,"html_url":"https://github.com/Dharun37/Recipe-Finder","commit_stats":null,"previous_names":["dharun37/recipe-finder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dharun37/Recipe-Finder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dharun37%2FRecipe-Finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dharun37%2FRecipe-Finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dharun37%2FRecipe-Finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dharun37%2FRecipe-Finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dharun37","download_url":"https://codeload.github.com/Dharun37/Recipe-Finder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dharun37%2FRecipe-Finder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261998052,"owners_count":23242325,"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","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":["authentication","express","fullstack","jwt","mongodb","nodejs","react","recipe-app"],"created_at":"2025-06-26T04:18:42.962Z","updated_at":"2026-04-09T17:54:20.188Z","avatar_url":"https://github.com/Dharun37.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Recipe Generator\n\nA full-stack MERN (MongoDB, Express, React, Node.js) application for generating and managing recipes with user authentication.\n\n## Prerequisites\n\n- Node.js (v14 or higher)\n- MongoDB (local installation or MongoDB Atlas)\n- npm\n\n## Setup Instructions\n\n### 1. Install Dependencies\n\n```bash\nnpm run install-all\n```\n\nOr manually:\n```bash\nnpm install\ncd backend \u0026\u0026 npm install\ncd ../frontend \u0026\u0026 npm install\n```\n\n### 2. Configure Environment Variables\n\nCreate `.env` files from the examples:\n\n**Backend** (`backend/.env`):\n```env\nPORT=5000\nNODE_ENV=development\nMONGO_URI=mongodb://localhost:27017/recipe\nJWT_SECRET=your_super_secret_jwt_key_min_32_characters\nALLOWED_ORIGINS=http://localhost:3000\n```\n\n**Frontend** (`frontend/.env`):\n```env\nREACT_APP_API_URL=http://localhost:5000/api\n```\n\n### 3. Start MongoDB\n\nMake sure MongoDB is running locally:\n```bash\nmongod\n```\n\nOr use MongoDB Atlas (free cloud database):\n1. Sign up at https://cloud.mongodb.com\n2. Create a cluster\n3. Get your connection string\n4. Update `MONGO_URI` in `backend/.env`\n\n### 4. Run the Application\n\n**Option 1: Run both servers together**\n```bash\nnpm run dev\n```\n\n**Option 2: Run separately**\n\nBackend (in one terminal):\n```bash\ncd backend\nnpm start\n```\n\nFrontend (in another terminal):\n```bash\ncd frontend\nnpm start\n```\n\nThe app will open at:\n- Frontend: http://localhost:3000\n- Backend: http://localhost:5000\n\n## Project Structure\n\n```\n├── backend/\n│   ├── models/          # Mongoose models (User, Recipe)\n│   ├── server.js        # Express server\n│   ├── package.json\n│   └── .env.example\n├── frontend/\n│   ├── src/\n│   │   ├── components/  # React components\n│   │   ├── config.js    # API configuration\n│   │   └── App.js\n│   ├── package.json\n│   └── .env.example\n├── package.json         # Root package with scripts\n└── .gitignore\n\n```\n\n## Features\n\n- User signup and login with JWT authentication\n- Password hashing with bcryptjs\n- Recipe search using Spoonacular API\n- Save and manage favorite recipes\n- Security features (helmet, rate limiting, CORS)\n\n## Security Features\n\n- **Helmet.js**: Adds security headers\n- **Rate Limiting**: Prevents spam/brute force (5 login attempts per 15 min)\n- **CORS**: Configured to allow only specified origins\n- **JWT**: Secure token-based authentication\n- **Password Hashing**: Passwords encrypted with bcryptjs\n\n## Troubleshooting\n\n**MongoDB Connection Error:**\n- Make sure MongoDB is running\n- Check your `MONGO_URI` in backend/.env\n- For Atlas: Whitelist your IP address\n\n**CORS Error:**\n- Verify `ALLOWED_ORIGINS` in backend/.env includes `http://localhost:3000`\n\n**Port Already in Use:**\n- Change `PORT` in backend/.env to a different number\n- Update `REACT_APP_API_URL` in frontend/.env accordingly\n\n**JWT Secret Error:**\n- Make sure `JWT_SECRET` is set in backend/.env\n- Should be at least 32 characters long\n\n## Available Scripts\n\n```bash\nnpm run install-all    # Install all dependencies\nnpm run dev           # Run both frontend and backend\nnpm run dev:backend   # Run only backend\nnpm run dev:frontend  # Run only frontend\nnpm run build         # Build frontend for production\n```\n\n## API Endpoints\n\n- `POST /api/signup` - Register new user\n- `POST /api/login` - Login user\n- `GET /api/recipes` - Get all saved recipes\n- `POST /api/recipes` - Save a recipe\n- `DELETE /api/recipes/:id` - Delete a recipe\n- `GET /health` - Health check\n\n## Notes\n\n- Never commit `.env` files to version control\n- Keep your JWT secret secure\n- The Spoonacular API key in Recipe.js should be replaced with your own\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdharun37%2Frecipe-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdharun37%2Frecipe-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdharun37%2Frecipe-finder/lists"}