Skip to content

Personal and opinionated starting boilerplate based on next.js

Notifications You must be signed in to change notification settings

elliason/nextjs-boilerplate

Repository files navigation

Next js boilerplate

Tech stack

Conventions

This project follows pattern of dividing components between Presentational and Container Components as described in Dan Abramov's article thus Components connected to Redux store are placed inside '/src/containers' and simple components live inside '/src/components'

Start

Development

Start development with

npm run dev

or

yarn dev

Production

For building production version run

npm run build

or

yarn build

For starting the server in production mode run

npm run start

or

yarn start

Linting

Typescript

Typescript linting done with TSLint

npm run lint-ts

Styles

Styles linting done with Stylelint

npm run lint-styles

Testing

Testing done via Jest

npm run test

Used Libraries

Simplify module imports with absolute paths

Together with typescript and Next.js is working good this plugin https://github.com/PabloSzx/Next-TypeScript-Paths

  • Support baseUrl in tsconfig issue

ENV Variables

Done using dotenv plugin

About

Personal and opinionated starting boilerplate based on next.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published