Nzoni docs
  • Getting Started
  • Angular
    • Project Structure
    • Authentication, Magic Link and Google Auth
    • Landing page
    • Payments and Plans
    • Blog and articles
    • User Dashboard
    • Admin Dashboard
    • SEO & SSR
    • Deploy Angular Project
  • Nest.js
    • Project Structure
    • Authentication, Google auth and Magic link
    • Blogposts
    • Plans
    • Stripe Payment
    • Email and Templates
    • Database and Migration
    • Image File upload
    • Users
    • Deploy Nest.js project
  • Node.js/MongoDB
    • Project structure
    • API endpoints
  • Angular / Firebase / Node.js
  • Create first and default plan
  • Create an Admin User
  • Support
  • Licenses
Powered by GitBook
On this page
  1. Node.js/MongoDB

Project structure

This boilerplate is well-organized to keep your code maintainable. Here's a breakdown of the key directories:

├── config
│   ├── db_connection.js
├── controllers
│   ├── auth.controller.js
│   ├── blogpost.controller.js
│   ├── file-upload.controller.js
│   ├── payment.controller.js
│   ├── plan.controller.js
│   ├── user.controller.js
├── helpers
│   ├── auth.helper.js
│   ├── file.helper.js
│   ├── index.js
│   ├── mail.helper.js
│   ├── payment.helper.js
│   ├── user.helper.js
├── mail-templates
│   ├── partials
│   ├── account-created.pug
│   ├── canceled-subscription.pug
│   ├── created-subscription.pug
│   ├── default-template.pug
│   ├── failed-payment.pug
│   ├── reset-password.pug
│   ├── success-payment.pug
│   ├── updated-subscription.pug
├── middlewares
│   ├── adminGuard.js
│   ├── connectedUserGuard.js
│   ├── headers.js
│   ├── index.js
├── models
│   ├── Blogpost.js
│   ├── File-upload.js
│   ├── index.js
│   ├── Payment.js
│   ├── Plan.js
│   ├── User.js
├── routes
│   ├── auth.routes.js
│   ├── blogpost.routes.js
│   ├── file-upload.routes.js
│   ├── index.js
│   ├── payment.route.js
│   ├── plan.routes.js
│   ├── user.routes.js 
├── uploads
├── .env.example
├── index.js
├── package.json
PreviousNode.js/MongoDBNextAPI endpoints

Last updated 1 year ago