Skip to content
/ nt3 Public template

This template provides a starting point for building Next.js apps with Tailwind, TypeScript and Three.js.

License

Notifications You must be signed in to change notification settings

whosramoss/nt3

Repository files navigation

NT3

This template provides a starting point for building Next.js apps with Tailwind, TypeScript and Three.js.

Website React Tailwind TypeScript Framer Motion
Prettier eslint zod three


How to install

  # Clone the project
  git clone https://github.com/whosramoss/nt3/

  # Go to the project directory
  cd nt3

  # Install dependencies
  npm install

  # Start the server 
  npm run dev

How to build

  • Before generating the build, don't forget to update the metadata file and set isLocalMetadata = false.
  • To generate a static compilation, the next.config.mjs file must have the object below :
const staticbuild = {
  distDir: 'build',
  output: 'export',
  trailingSlash: true,
}
  • Run the command:
  npm run build

Project Structure Overview

src/
├── app/
├── hooks/
├── models/
├── providers/
├── styles/
├── ui/
└── utils/
Name Summary Description
src Root Source Folder The src folder is where all the source code for the React application resides. It contains various subfolders, each with a specific purpose related to the architecture of the project.
app Pages, Layouts, and API Routes The app folder is typically used for organizing the core pages and layouts of the application, as well as handling API routes if you're using Next.js or a similar framework with server-side capabilities.
hooks Custom Hooks The hooks folder contains all the custom React hooks used throughout the application. Custom hooks allow you to encapsulate logic that can be reused in multiple components, keeping your code DRY (Don’t Repeat Yourself).
models Data Models and Type Definitions The models folder is often used to define TypeScript types, interfaces, or any models that are used to represent the data in your application.
providers Context Providers The providers folder typically contains context providers for managing global state using React Context API. This is useful for sharing state or logic across different components without passing props down through every level of the component tree.
styles CSS/SCSS, Styled Components The styles folder is used to store all the styles for the application. Depending on your styling approach.
ui Reusable UI Components The ui folder contains reusable components that make up the user interface of your application. These are generally smaller, focused components that can be used across different pages and sections of the app.
utils Utility Functions, Constants, Enums, and Interfaces The utils folder contains utility functions, constants, enums, and interfaces that are used throughout the application. These are helper files that contain code that is not tied to any specific component but is used across the app for various tasks.

Framework and Packages

Hooks

Contributing

If you want to contribute to nt3, please make sure to review the contribution guidelines. This project makes use of GitHub issues for tracking requests and bugs.

License

MIT License. LICENSE

Author

Gabriel Ramos (@whosramoss)

About

This template provides a starting point for building Next.js apps with Tailwind, TypeScript and Three.js.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published