How relydda20/bulletinboardbackend works
Project type and purpose
• This is a backend‐only RESTful API service for a bulletin board application.
• Built with Express.js (server.js, src/app.js), MongoDB Atlas (via Mongoose models), and supports authentication (username/password + Google OAuth), email (password reset), and CRUD for posts/comments.
File structure
• Top level
• server.js & src/app.js: entrypoints (loadEnv, Express app setup).
• config/: DB connection, JWT setup, mailer, Passport strategies.
• controllers/: HTTP handlers per resource (auth, posts, comments, users, password resets).
• routes/: maps HTTP endpoints to controllers.
• middleware/: request validation, auth enforcement.
• models/: Mongoose schemas for User, Post, Comment.
• utils/: JWT token issuance/verification, sendEmail abstraction.
• scripts/seed.js + seeders/: CLI scripts to populate the database.
README
• Confirms technologies: Express.js, MongoDB Atlas.
• Features: Authentication, CRUD Post, CRUD Comment, Google login, password reset email flow.