{"id":31390853,"url":"https://github.com/dax-side/recipe_sharing","last_synced_at":"2026-04-11T04:31:58.360Z","repository":{"id":315671272,"uuid":"1060440770","full_name":"dax-side/recipe_sharing","owner":"dax-side","description":"I built a recipe sharing API using Node.js, TypeScript, and Express.js. People create accounts, rate recipes, leave comments, and search through everything. The code stays organized with a modular setup, and I documented it all with Swagger.","archived":false,"fork":false,"pushed_at":"2025-09-19T23:47:46.000Z","size":145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-29T01:37:29.318Z","etag":null,"topics":["advanced-search","cooking-api","enterprise-api","expressjs","file-upload","food-app","joi-validation","jwt-authentication","modular-architecture","mongodb","mongoose","nodejs","production-ready","recipe-sharing","rest-api","social-features","swagger-documentation","typescript","user-management"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dax-side.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-19T23:25:47.000Z","updated_at":"2025-09-20T00:03:14.000Z","dependencies_parsed_at":"2025-09-20T15:17:07.237Z","dependency_job_id":null,"html_url":"https://github.com/dax-side/recipe_sharing","commit_stats":null,"previous_names":["dax-side/recipe_sharing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dax-side/recipe_sharing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dax-side%2Frecipe_sharing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dax-side%2Frecipe_sharing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dax-side%2Frecipe_sharing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dax-side%2Frecipe_sharing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dax-side","download_url":"https://codeload.github.com/dax-side/recipe_sharing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dax-side%2Frecipe_sharing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["advanced-search","cooking-api","enterprise-api","expressjs","file-upload","food-app","joi-validation","jwt-authentication","modular-architecture","mongodb","mongoose","nodejs","production-ready","recipe-sharing","rest-api","social-features","swagger-documentation","typescript","user-management"],"created_at":"2025-09-29T01:37:27.950Z","updated_at":"2026-04-11T04:31:58.326Z","avatar_url":"https://github.com/dax-side.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Recipe Sharing API\n\nA comprehensive RESTful API for sharing, discovering, and interacting with recipes. Built with Node.js, TypeScript, and Express.js following enterprise-grade architectural patterns.\n\n## Features\n\n- **User Management**: Registration, authentication, profile management\n- **Recipe Sharing**: Create, update, delete, and discover recipes\n- **Advanced Search**: Filter by ingredients, cuisine, dietary restrictions, and more\n- **Social Features**: Like, comment, rate, and share recipes\n- **Community Interaction**: Follow users, save favorites, get notifications\n- **Content Management**: Image upload, categorization, and tagging\n\n## Quick Start\n\n### Prerequisites\n- Node.js (v16 or higher)\n- MongoDB\n- npm or yarn\n\n### Installation\n\n1. Clone the repository:\n```bash\ngit clone \u003crepository-url\u003e\ncd recipe-sharing-api\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Create environment variables:\n```bash\ncp .env.example .env\n# Edit .env with your database and other configuration\n```\n\n4. Start the application:\n```bash\n# Development\nnpm run dev\n\n# Production\nnpm run build\nnpm start\n```\n\nThe API will be available at `http://localhost:3000`\n\n### API Documentation\n\nInteractive API documentation is available at:\n- **Swagger UI**: `http://localhost:3000/api-docs`\n- **Health Check**: `http://localhost:3000/health`\n\n## Architecture\n\nThis API follows a **Modular Layered Architecture** with enterprise-grade design patterns:\n\n- **Modular Controllers**: Domain-specific controllers with clear separation of concerns\n- **Middleware Pipeline**: Authentication, validation, error handling, and logging\n- **Type Safety**: Full TypeScript implementation with strict typing\n- **Security**: JWT authentication, input validation, and sanitization\n- **Documentation**: Comprehensive Swagger/OpenAPI 3.0 documentation\n\nFor detailed architectural information, see [Architecture Documentation](src/docs/ARCHITECTURE.md).\n\n## API Reference\n\nFor comprehensive API documentation, see [API Reference](src/docs/API.md).\n\n### Quick Reference\n\n#### Authentication\n- `POST /api/auth/signup` - Register new user\n- `POST /api/auth/login` - User login\n- `POST /api/auth/logout` - User logout\n\n#### Recipes\n- `GET /api/recipes` - Get all recipes (with pagination)\n- `GET /api/recipes/search` - Advanced recipe search\n- `POST /api/recipes` - Create new recipe (auth required)\n- `GET /api/recipes/:id` - Get recipe by ID\n- `PUT /api/recipes/:id` - Update recipe (auth required)\n- `DELETE /api/recipes/:id` - Delete recipe (auth required)\n\n#### Social Features\n- `POST /api/recipes/:id/like` - Like/unlike recipe\n- `POST /api/recipes/:id/rate` - Rate recipe\n- `POST /api/recipes/:id/share` - Share recipe\n- `POST /api/users/follow/:userId` - Follow/unfollow user\n\n#### Discovery\n- `GET /api/recipes/categories` - Get all categories and tags\n- `GET /api/recipes/featured` - Get featured recipes\n- `GET /api/recipes/popular` - Get popular recipes\n- `GET /api/recipes/cuisine/:type` - Get recipes by cuisine\n\nFor the complete API reference with request/response examples, see [API Documentation](src/docs/API.md).\n\n## Technologies Used\n\n- **Runtime**: Node.js with TypeScript\n- **Framework**: Express.js\n- **Database**: MongoDB with Mongoose ODM\n- **Authentication**: JWT with refresh token support\n- **Validation**: Joi schema validation\n- **Documentation**: Swagger/OpenAPI 3.0\n- **File Upload**: Multer\n- **Email**: Nodemailer\n- **Security**: bcrypt, CORS, helmet\n\n## Project Structure\n\n```\nsrc/\n├── controllers/        # Business logic (domain-specific)\n├── models/            # Data models and schemas\n├── routes/            # API endpoint definitions\n├── middleware/        # Cross-cutting concerns\n├── validation/        # Input validation schemas\n├── config/            # Application configuration\n├── utils/             # Shared utilities\n├── docs/              # Documentation\n└── types/             # TypeScript type definitions\n```\n\n## Development\n\n### Scripts\n\n```bash\nnpm run dev          # Start development server with hot reload\nnpm run build        # Build TypeScript to JavaScript\nnpm start            # Start production server\nnpm test             # Run test suite\nnpm run lint         # Run ESLint\nnpm run lint:fix     # Fix ESLint issues automatically\n```\n\n### Environment Variables\n\nCreate a `.env` file with the following variables:\n\n```\nNODE_ENV=development\nPORT=3000\nMONGODB_URI=mongodb://localhost:27017/recipe-sharing\nJWT_SECRET=your-jwt-secret\nJWT_EXPIRES_IN=1d\nJWT_REFRESH_SECRET=your-refresh-secret\nJWT_REFRESH_EXPIRES_IN=7d\nSMTP_HOST=your-smtp-host\nSMTP_PORT=587\nSMTP_USER=your-email\nSMTP_PASS=your-password\nFRONTEND_URL=http://localhost:3000\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\n- Documentation: [Architecture](src/docs/ARCHITECTURE.md) | [API Reference](src/docs/API.md)\n- Issues: [GitHub Issues](https://github.com/your-repo/recipe-sharing-api/issues)\n- Email: support@recipeapi.com\n\n---\n\nBuilt for the culinary community","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdax-side%2Frecipe_sharing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdax-side%2Frecipe_sharing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdax-side%2Frecipe_sharing/lists"}