GithubHelp home page GithubHelp logo

mauriciogirardi / boilerplate-nextjs-app-router Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3.32 MB

This project is a versatile and feature-rich boilerplate for building modern web applications using Next.js. It comes pre-configured with various tools and technologies to streamline your development process. Whether you're starting a new project or looking to enhance an existing one, this boilerplate provides a solid foundation for Next.js.

License: MIT License

Shell 0.79% JavaScript 20.60% TypeScript 70.09% Handlebars 7.96% CSS 0.57%

boilerplate-nextjs-app-router's Introduction

Boilerplate Next.js App with Router

This project is a versatile and feature-rich boilerplate for building modern web applications using Next.js. It comes pre-configured with various tools and technologies to streamline your development process. Whether you're starting a new project or looking to enhance an existing one, this boilerplate provides a solid foundation for Next.js applications with a focus on maintainability, scalability, and best practices.

Features

  • Next.js 14.0.4: Leverage the latest features and improvements in the Next.js framework.
  • React 18: Harness the power of the latest React version for building dynamic user interfaces.
  • Zod 3.22.4: Enjoy efficient and type-safe runtime validation for your application's data.
  • @t3-oss/env-nextjs 0.7.1: Simplify environment variable management in your Next.js projects.
  • Storybook 7.6.7: Develop and showcase your UI components in isolation with Storybook.
  • Vitest 1.1.3: Enhance your testing workflow with a fast, lightweight test runner for JavaScript and TypeScript.
  • Husky 8.0.0 and lint-staged 15.2.0: Enforce code quality through pre-commit hooks and staged file linting.
  • Tailwind CSS 3.3.0: Craft beautiful and responsive UIs effortlessly with the utility-first CSS framework.
  • Prettier 3.1.1: Maintain a consistent and clean codebase with Prettier's opinionated code formatting.
  • ESLint 8.0.0: Ensure code consistency and catch common errors with the ESLint linter.
  • Cypress 13.6.2: Facilitate end-to-end testing with the fast, easy, and reliable testing framework.

Scripts

  # Run the development server.
  pnpm dev

  # Build the Next.js application for production.
  pnpm run build

  # Start the production server.
  pnpm start

  # Lint the project using Next.js and ESLint configurations.
  pnpm lint

  # Run tests using the Vitest test runner.
  pnpm test
  pnpm test:watch
  pnpm test:watch:ui
  pnpm test:coverage

  # Open coverage on the browser
  pnpm coverage

  # Launch the Storybook development environment.
  pnpm run storybook

  # Build the Storybook project for deployment.
  pnpm run build-storybook

  # Use Plop to generate boilerplate code and files.
  pnpm generate

Getting Started

# Clone this repository.
git clone https://github.com/mauriciogirardi/boilerplate-nextjs-app-router.git

# Install dependencies with pnpm install.
pnpm install

# Run
pnpm dev

Start new project using this boilerplate

 # pnpm
 pnpm dlx create-next-app --example https://github.com/mauriciogirardi/boilerplate-nextjs-app-router

# npm
npx create-next-app --example https://github.com/mauriciogirardi/boilerplate-nextjs-app-router

Environment

# In the file . gitignore uncomment this line so your env does not go to the repository.

# .env*.local

NEXT_PUBLIC_BASE_URL="http://localhost:3000"
APP_URL="http://localhost:3000/api"
NODE_ENV="developemnt"
SITE_NAME="Boilerplate"

Customize and extend the boilerplate to suit your specific project requirements.

Feel free to explore the rich ecosystem of technologies included in this boilerplate and leverage them to create exceptional web applications. Happy coding! ๐Ÿš€

boilerplate-nextjs-app-router's People

Contributors

mauriciogirardi avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.