Forge templates through scripts.
npm install -g yo generator-zanpakuto
Then generate your new project:
yo zanpakuto
- Express hello world template
- Express mongoose boilerplate.
- Metadata configuration.
- TypeScript Support.
- App router with '/src' directory support.
- Initialize next.js project with app router:
npm create-next-app@latest
- Select utility option, after entering
yo zanpakuto
. - 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"
}
]
}
- You can specify whether to use typescript and /src directory according to the project.
You can star the repository, if you like my work. Contact me at: [email protected].