• Stars
    star
    318
  • Rank 131,872 (Top 3 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created about 3 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DhiWise Node.js API generator allows you to instantly generate secure REST APIs. Just supply your database schema to DhiWise, and a fully documented CRUD APIs will be ready for consumption in a few simple clicks. The generated code is clean, scalable, and customizable.

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

⚠️ Note: Use npm i --force If your npm installation fails. As Node version >= 14 will give you errors if peer dependency in different packages have ambiguation in versions.

  1. With npm run start project will run on 3000 port.
  2. 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? 🐞 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

More Repositories

1

Shopsie

This is eCommece application which is built in Flutter and Medusa API.
Dart
35
star
2

DhiBasket

A Grocery Application, built with Flutter and DhiWise
Dart
22
star
3

Second-Brain

Dart
17
star
4

nodejs-cli

DhiWise nodejs-cli quickly helps developers to generate Node.js applications through CLI. Moreover, helps developers extend node.js applications created on DhiWise.
HTML
14
star
5

Expension

A Flutter mobile application built completely using DhiWise and Supabase without coding single line of code. With 100% system generated code
Dart
11
star
6

Blogie

A Blog posting and Listing Application
Dart
7
star
7

Terraform

Terraform in the app
Dart
6
star
8

gitlab

This is GitLab application developed using GitLab's API & Flutter
Dart
5
star
9

portfolio

A developer's portfolio - build with NestJs, Prisma and DhiWise
JavaScript
5
star
10

PxToDpConverter

PxToDp converter creates dimension files to make your UI responsive across all the devices. Simply Input the width and height of your app screen design, and have your responsive UI work on any phone and tablet within seconds.
Kotlin
5
star
11

GitForker

GitForker provides features like Forks a GitHub repository, find people, organisation,repository and assigned pull requests and issues. this app making tasks easy for you to perform.
Dart
5
star
12

metrics-management

A react web app to manage monthly targets to achieve metrics of a Goal and the tasks related to it. Built with DhiWise Using ClickUp APIs and Supabase in the backend.
JavaScript
4
star
13

paginationview

Handy library to integrate pagination, which allow no data layout, refresh layout, recycler view in one view and easy way to bind pagination in app.
Kotlin
4
star
14

chargebee

This is Chargebee's mobile application for subscription management
Dart
4
star
15

Edgepay

This is usecase of RazorPay API integration.
Dart
4
star
16

Mood-wise-Track

Mood wise Music selection by Emoji built in ReactJs.
JavaScript
3
star
17

Feedback-Management-System

Feedback Management System using DhiWise, Salesforce and Canny APIs.
Dart
3
star
18

cleanCodeArchitecture

JavaScript
3
star
19

dhiwise-document

Documentation repository of DhiWise
JavaScript
3
star
20

android-localization

This program will read from your android application string.xml file and generate translated strings.xml files in your preferred languages using google sheet.
Kotlin
2
star
21

CodeNotes

When need to take coding notes for your self, build your own coding notes app using DhiWise x Supabase.
Dart
1
star