How helixgen/orphandonationn works
This is an Express web app for an orphanage/adoption-oriented site, with account registration and login, a user dashboard, and a Stripe checkout flow. A browser visitor reaches the Express server, which mounts authentication routes; those routes render pages and delegate credential checks to Passport. Registration and authentication use the Mongoose user model, while checkout creates a Stripe session. The README mentions MongoDB setup. Source excerpts show the main route and model interactions; view contents and styling details were not sampled.
Main entry points: auth.js Auth routes · server.js Express server · passport.js Local authentication · User.js User model
Components 9
Web experience
- Page templates
app/views - Homepage behavior
app/public/scripts/homepage.js
HTTP application
- Express server
app/server.js - Auth routes
app/routes/auth.js
Identity and users
- Local authentication
app/config/passport.js - User model
app/models/User.js
Checkout
- Stripe Checkout
Other components
- Browser visitor
- MongoDB
Connections 10
- Browser visitor → Express server: sends requests
app/server.js - Homepage behavior → Browser visitor: redirects browser
app/public/scripts/homepage.js - Express server → Auth routes: mounts routes
app/server.js - Express server → Local authentication: configures
app/server.js - Auth routes → Page templates: renders pages
app/routes/auth.js - Auth routes → User model: queries and saves
app/routes/auth.js - Auth routes → Local authentication: authenticates login
app/routes/auth.js - Local authentication → User model: looks up users
app/config/passport.js - Express server → MongoDB: connects
app/server.js - Auth routes → Stripe Checkout: creates checkout
app/routes/auth.js