Giter Site home page Giter Site logo

dlipahir / dhiwise-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dhiwise/dhiwise-nodejs

0.0 0.0 0.0 1.76 MB

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.

Home Page: https://dhiwise.com

License: Apache License 2.0

Shell 0.01% JavaScript 73.91% CSS 2.20% HTML 0.05% EJS 23.84%

dhiwise-nodejs's Introduction

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.

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.

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

dhiwise-nodejs's People

Contributors

saloni-dhiwise avatar ravisojitra avatar krinasardhara avatar mitul-sarvaiya avatar shubhamkhunt04 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.