Skip to content

faanrm/node-craft

Repository files navigation

🚀 Node-Craft

The Ultimate Low-Code / No-Code Node.js Project Generator

Instantly scaffold production-ready backend applications with Express or Fastify, Prisma or TypeORM, GraphQL or REST, and built-in JWT Authentication.

npm version License: MIT

Key Features

  • Framework Flexibility: Choose between Express or Fastify.
  • Database Agnostic: Support for PostgreSQL, MySQL, and MongoDB.
  • Top-Tier ORMs: Integrated with Prisma, TypeORM, Sequelize, or Mongoose. -API Styles: Automatically generate REST APIs or GraphQL (Apollo Server v4). -Turnkey Security: Pre-configured JWT authentication, bcrypt hashing, Helmet, and CORS. -Data Modeling: Design your models directly in the CLI. Node-Craft will automatically generate the corresponding Prisma schemas, interfaces, controllers, and services for you. -Strict TypeScript: 100% typed output, from GraphQL resolvers to Request/Response objects.

💻 Quick Start

You can generate a new project instantly using npx (no installation required):

npx @krakennn/node-craft@latest create

Global Installation

If you generate projects often, install it globally:

npm install -g @krakennn/node-craft@latest
# or using yarn
yarn global add @krakennn/node-craft@latest

Then run the CLI wizard from anywhere:

node-craft create

Adding New Models

Once you have generated your node-craft project, you don't have to start over to add a new model. Navigate inside your generated project directory (where node-craft.json is located) and run:

node-craft add

This will launch the interactive wizard again specifically to add a new entity (like a Post, Comment, Order) to your existing project. Node-Craft will intelligently generate the new Controller, Service, Interfaces, and update your Prisma/TypeORM schema without overwriting your existing code!

After adding the module, remember to update your database:

npm run generate
npm run migrate

About

NodeCraft is a command-line interface (CLI) tool designed to streamline the creation of Node.js projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors