MCPcopy Index your code
hub / github.com/DhiWise/dhiwise-nodejs

github.com/DhiWise/dhiwise-nodejs @v1.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3.0 ↗ · + Follow
1,129 symbols 3,080 edges 659 files 53 documented · 5% updated 2y agov1.3.0 · 2022-04-25★ 3314 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

GitHub stars Issues

Node.js Code Generator

Node.js code generator is a developer-centric platform to build backend CRUD APIs along with other essential features to boost developers' productivity time by twofold!

Developers just need to add their schema data to reduce their work related to models into a few simple configurations. Developers can also configure platforms , routes, role access, authentication & more for their application.

Most importantly, the Node.js code generator gives developers total code ownership. The code it generates is bug-free and easily customizable

Table of contents

Get started

After a successful run, a user can configure different settings using UI, and build an app to generate the code. 1. To run npm i && npm run start 2. With npm run start project will run on 3000 port. 3. Run http://localhost:3000 and you will see "create application" form. After creating an application you can configure modules and build the app to get the source code. create-application 4. After a successful build, Generated code will resides inside the packages/server/output folder.

Supported architectures

This project provides two architectures to choose from, while creating an application.

Clean Code

The main rule of clean architecture is that code dependencies can only move from the outer levels inward. Code on the inner layers can have no knowledge of functions on the outer layers.

MVC - Model-View-Controller

The Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller. Each of these components are built to handle specific development aspects of an application.

Features of generated code

  1. User Authentication and Authorization (using Passport)
  2. Social Login APIs
  3. CRUD APIs with middleware and attributes' selection
  4. List API with pagination, populate and queries
  5. Upload attachment API with validation and storage options like (Local server or S3 public/private bucket)
  6. Role-Permission
  7. Hooks and Indexes
  8. Policy/middleware
  9. API request body validation (Using joi)
  10. API response with standard error and message pattern
  11. Test cases
  12. Postman collection and API documentation
  13. Constants
  14. Environment Variables for development, QA and production
  15. Custom API setup
  16. Multiple Platform selection and User type configuration
  17. MVC and Clean-code architecture
  18. Supported Databases

    a. MongoDB

    b. SQL Server

    c. MYSQL

    d. PostgreSQL

Documentation

Here's the Documentation of How you can use generated APIs

Contribution

Have you found a bug? :lady_beetle: Please report it here or have a nice feature 💡 to contribute? Add it here

Our Contribution guide will help you how to contribute.

Support

If you have problems or questions go to our Discord channel, we will then try to help you as quickly as possible: https://discord.gg/hTuNauNjyJ

Core symbols most depended-on inside this repo

validationCustomMessage
called by 149
packages/server/usecase/util/validation.js
render
called by 120
packages/client/src/components/DropdownMenu/Dropdown_bkp.js
getDetails
called by 76
packages/server/repo/db.js
update
called by 70
packages/server/repo/db.js
useBoolean
called by 67
packages/client/src/container/hooks/useBoolean.js
get
called by 67
packages/server/repo/db.js
create
called by 42
packages/server/repo/db.js
apiClient
called by 41
packages/client/src/api/config.js

Shape

Function 1,006
Method 80
Class 43

Languages

TypeScript100%

Modules by API surface

packages/server/usecase/application/node-generator/createApplication/InputParser/index.js31 symbols
packages/server/models/Repo/Connection.js23 symbols
packages/server/usecase/application/node-generator/createApplication/utils/common.js21 symbols
packages/server/models/Repo/index.js18 symbols
packages/server/usecase/application/node-generator/templates/cleanCodeSequelize/services/dbService.js17 symbols
packages/server/usecase/application/node-generator/templates/mvcSequelize/utils/dbService.js16 symbols
packages/client/src/constant/model.js16 symbols
packages/server/usecase/application/node-generator/templates/mvc/utils/dbService.js15 symbols
packages/server/usecase/application/node-generator/templates/cleanCodeSequelize/data-access/dbService.js15 symbols
packages/server/usecase/application/node-generator/createApplication/service/index.js15 symbols
packages/client/src/components/DropdownMenu/Dropdown_bkp.js14 symbols
packages/server/usecase/application/node-generator/templates/cleanCode/data-access/dbService.js13 symbols

Datastores touched

queueCollection · 1 repos
(mongodb)Database · 1 repos

For agents

$ claude mcp add dhiwise-nodejs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact