Skip to content
/ template-next Public template

Decentree template repository for bootstrapping Next.js projects

Notifications You must be signed in to change notification settings

Decentree/template-next

Repository files navigation

PROJECT_NAME

Get Started

  1. To create a project based on this template click on the Use this template button
  2. Find and Replace PROJECT_NAME placeholder with the real project name
  3. Delete libraries which do not satisfy project needs
  4. Delete this section from README
  5. To cover your tracks and incorporate the changes to the project's Initial commit, run these commands:
git commit -a --amend
git push -f origin master

Documentation

Project is based on Next.js, a production-ready React Framework. Check out the documentation for more information.

Prerequisites

  • node
  • npm

Usage

Firstly, install all necessary dependencies:

npm install

To start a development server:

npm run dev

To build the app for production:

npm run build
npm start

Folder structure

template-next/
├── config (theme)
├── public
├── shared (shared files - css, validation, etc.)
└── src
    ├── components (inspired by atomic design principles)
    │   ├── elements (small building blocks)
    │   ├── layouts (wrappers for templates)
    │   ├── modules (more building blocks together)
    │   └── templates (page specific content)
    ├── graphql (each module and its queries and mutations)
    ├── i18n (translations)
    ├── pages
    ├── services (graphql client and other services)
    ├── stores (state management)
    └── types (more complex interfaces)

What's Inside

Releases

No releases published

Packages

No packages published