ck-next-template
v0.1.2
Published
A Next.js file structure template
Downloads
33
Readme
CK Next.js Template
A Next.js template with disaster and weather features that can be used to quickly scaffold new projects.
Publishing to npm
Login to npm (if not already logged in):
npm loginPublish the package:
npm publishTest the published package:
npx ck-next-template my-app
Using the Template
Once published, anyone can create a new project using:
npx ck-next-template my-appThis will:
- Create a new directory called
my-app - Copy all template files
- Install dependencies
- Set up the project with the correct package.json
Development
To work on the template locally:
npm run devProject Structure
src/
├── app/ # Next.js app directory
├── features/ # Feature-based modules
│ ├── disasters/ # Disaster management features
│ └── weather/ # Weather-related features
└── shared/ # Shared components and utilitiesTechnologies Used
- Next.js 16 with App Router
- React 19 with TypeScript
- Mantine UI components
- TanStack Query for data fetching
- Tailwind CSS for styling
