Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
/ next-module-system Public archive

Simple template to use next with modules achitecture

License

Notifications You must be signed in to change notification settings

awekrx/next-module-system

Repository files navigation

Next module system

Start

Install dependencies

npm ci

Development

npm run dev

Production

npm ci
npm run dev

File structure

project/
├── core/
│   ├── index.ts
│   ├── builder/
│   ├── decorators/
│   ├── units/
│   └── utils/
└── modules/
    ├── root/ -> transform pages into '/' route
    │   ├── index.ts
    │   ├── module.ts
    │   ├── pages/ -> like next routing
    │   │   ├── index.ts
    │   │   ├── page/
    │   │   └── layout/
    │   └── components/
    │       ├── index.ts
    │       ├── (client component)/
    │       │   ├── index.ts
    │       │   ├── useLogic.ts
    │       │   └── view.tsx -> `use client` directive is required
    │       └── (server component)/
    │           ├── index.ts
    │           ├── useLogic.ts
    │           └── view.tsx
    └── (your module)/
        ├── index.ts
        ├── module.ts
        ├── pages/ -> like next routing
        │   ├── index.ts
        │   ├── page/
        │   └── layout/
        └── components/
            ├── index.ts
            ├── (client component)/
            │   ├── index.ts
            │   ├── useLogic.ts
            │   └── view.tsx -> `use client` directive is required
            └── (server component)/
                ├── index.ts
                ├── useLogic.ts
                └── view.tsx

About

Simple template to use next with modules achitecture

Topics

Resources

License

Stars

Watchers

Forks