Skip to content

MridulDhiman/zanpakuto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zanpakuto

Forge templates through scripts.

Installation

npm install -g yo generator-zanpakuto

Then generate your new project:

yo zanpakuto

Templates:

  • Express hello world template
  • Express mongoose boilerplate.

Utilities

Usage:

Next.js app router

Features:

  1. Metadata configuration.
  2. TypeScript Support.
  3. App router with '/src' directory support.

Steps:

  1. Initialize next.js project with app router:
npm create-next-app@latest
  1. Select utility option, after entering yo zanpakuto.
  2. Initialize a routes.json file in the next.js project root directory in this way:
{
  "routes": [
    {
      "path": "/signup",
      "name": "Signup"
    },
    {
      "path": "/login",
      "name": "Login"
    },
    {
      "path": "/dashboard",
      "name": "Dashboard"
    },
    {
      "path": "/api/signup",
      "name": "Signup Route"
    },
    {
      "path": "/api/login",
      "name": "Login Route"
    }
  ]
}
  1. You can specify whether to use typescript and /src directory according to the project.

API Reference

Thank You

You can star the repository, if you like my work. Contact me at: [email protected].