/nextjs-template

A sweet Next.js project template. Integrates Redux Toolkit with with test support for Mocha + Chai + React Testing Library and release publishing via release-it.

Primary LanguageJavaScript

Next.js Template

Getting a Next.js application up and running is not a trivial exercise, especially if you want a robust and extensible result that will support a modern development process.

Here's a plug-and-play Next.js template that offers the following features:

  • Tree-shakable support for the latest ES6 goodies with eslint uber alles.

  • User registration & authentication via NextAuth.js, by default against an AWS Cognito User Pool supporting native username/password authentication and one federated identity provider (Google).

  • Support for public & private API endpoints, both local to NextJS and at any AWS API Gateway secured by the same Cognito User Pool.

  • Configured to act as a front end & authentication client for my AWS API Template on the back end.

  • Fully integrated application state management with the Redux Toolkit, including support for difficult-to-serialize types like Date & BigInt.

  • Responsive UX with Semantic UI React with LESS theme overrides enabled & ready for input!

  • A responsive & attractive sample UI that encapsulates a ton of common use cases into an opinionated architecture and a library of utility components.

  • Automated lodash cherry-picking with babel-plugin-lodash.

  • Front & back-end testing with mocha, chai, and the React Testing Library. Includes examples and a sweet testing console!

  • Code formatting at every save & paste with prettier.

  • One-button release to GitHub with release-it.

Click here for full documentation & instructions!