How lujaintayy/recipeeez works
RECIPEEEZ lets visitors browse saved recipes and submit recipes for later use, with Google sign-in also present. The configured runtime starts at src/app.js: it serves the public pages and handles recipe listing and creation against MongoDB. The repository also contains a parallel root-level implementation, including recipe routes and controllers; the excerpts do not show it as the configured entry point. Google OAuth is routed through Passport, while the excerpts do not establish that the separate auth controller is wired into those routes.
Main entry points: src/app.js Express application · app.js Root application · recipeController.js Recipe controller · authRoutes.js Authentication routes
Components 18
Web experience
- Recipe pages
public - Browser behavior
public/js/main.js
Application runtime
- Express application
src/app.js
Recipe handling
- Recipe controller
src/controllers/recipeController.js - Recipe routes
src/routes/recipeRoutes.js - Recipe model
src/models/recipeModel.js
Identity and users
- Authentication routes
src/routes/authRoutes.js - User authentication
src/controllers/authController.js - User model
src/models/userModel.js
Parallel implementation
- Root application
app.js - Root authentication routes
routes/authRoutes.js - Root user authentication
controllers/authController.js - Root user model
models/userModel.js - Root recipe routes
routes/recipeRoutes.js - Root recipe controller
controllers/recipeController.js - Root recipe model
models/recipeModel.js
Other components
- Visitor
- Google OAuth
Connections 13
- Visitor → Recipe pages: uses
README.md - Express application → Recipe pages: serves
src/app.js - Express application → Authentication routes: mounts
src/app.js - Authentication routes → Google OAuth: authenticates with
src/routes/authRoutes.js - User authentication → User model: reads and saves
src/controllers/authController.js - Recipe routes → Recipe controller: dispatches to
src/routes/recipeRoutes.js - Recipe controller → Recipe model: queries and saves
src/controllers/recipeController.js - Express application → Recipe model: queries and saves
src/app.js - Root application → Root authentication routes: mounts
app.js - Root application → Root recipe routes: mounts
app.js - Root user authentication → Root user model: reads and saves
controllers/authController.js - Root recipe routes → Root recipe controller: dispatches to
routes/recipeRoutes.js - Root recipe controller → Root recipe model: queries and saves
controllers/recipeController.js