victorsoares96 / nextjs-template

Home Page:https://nextjs-template-alpha-beryl.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js TypeScript Template

An enterprise Next.js template application based on bulletproof architecture showcasing - Testing strategies, Global state management, Custom environments, a network layer, component library integration, server response caching, PWA support, localization, Custom App, Custom document, Custom offline fallback, and Continuous integration & deployment.


Based on Wednesday Solutions - Next Template


Out of the box support

  • Global state management using redux-toolkit
  • Side Effects using RTK Query
  • API calls using api-sauce
  • Styling using styled-components
  • Reusing components from Ant design
  • Translations using react-intl

Global state management using @redux/toolkit

Implementing a Redux middleware using RTK Query

Network requests using apisauce

Styling using styled-components

Using antd as the component library

Localization using react-intl

Implementing CI/CD pipelines using Github Actions

  • CI/CD using Github Actions. The CI pipeline has the following phases

    • Checkout
    • Install dependencies
    • Lint
    • Test
    • Build
    • Lighthouse CI

    Take a look at the following files

Testing using @testing-library/react

Development

Start server

  • Development: yarn dev

  • Production: yarn start

Build project (SSG)

  • Production: yarn build

Misc

Aliasing

  • @features -> features/
  • @slices -> store/slices/
  • @store -> store/
  • @common -> common/
  • @themes -> themes/
  • @utils -> utils/
  • @containers -> containers/

Take a look at the following files

Index page

Custom document

Custom app

Custom offline fallback page

About

https://nextjs-template-alpha-beryl.vercel.app/


Languages

Language:TypeScript 89.1%Language:JavaScript 7.9%Language:CSS 2.5%Language:Shell 0.5%