All Projects â†’ sanjaytwisk â†’ Nextjs Ts

sanjaytwisk / Nextjs Ts

Opinionated Next JS project boilerplate with TypeScript and Redux

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Nextjs Ts

Pwa Boilerplate
✨ PWA Boilerplate is highly scalable and is designed to help you kick-start your next project 🔭.
Stars: ✭ 82 (-38.81%)
Mutual labels:  nextjs, boilerplate, scss, css-modules
React Redux Saga Starter
Basic, Opinionated starter kit for React+Redux+Redux Saga with support for SCSS CSS Modules, Storybook, JEST testing, and ESLint
Stars: ✭ 12 (-91.04%)
Mutual labels:  jest, scss, css-modules
React Mobx React Router Boilerplate
A simple boilerplate based on create-react-app and add mobx, react-router, linter, prettier and so on. 一ä¸ĒįŽ€å•įš„ react č„šæ‰‹æžļ䞝čĩ–äēŽ create-react-app 新åĸžäē† mobx react-router,linter,prettier į­‰ã€‚
Stars: ✭ 12 (-91.04%)
Mutual labels:  prettier, stylelint, boilerplate
Tris Webpack Boilerplate
A Webpack boilerplate for static websites that has all the necessary modern tools and optimizations built-in. Score a perfect 10/10 on performance.
Stars: ✭ 1,016 (+658.21%)
Mutual labels:  static-site, boilerplate, scss
React 2048 Game
🎮 A fancy 2048 game build with react, redux best practices.
Stars: ✭ 401 (+199.25%)
Mutual labels:  prettier, stylelint, scss
React Typescript Web Extension Starter
đŸ–Ĩ A Web Extension starter kit built with React, TypeScript, SCSS, Storybook, Jest, EsLint, Prettier, Webpack and Bootstrap. Supports Google Chrome + Mozilla Firefox + Brave Browser đŸ”Ĩ
Stars: ✭ 510 (+280.6%)
Mutual labels:  prettier, jest, scss
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-76.12%)
Mutual labels:  prettier, boilerplate, jest
react-component-library-lerna
Build your own React component library managed with lerna, presented with storybook and published in private npm registry.
Stars: ✭ 55 (-58.96%)
Mutual labels:  stylelint, jest, prettier
React Boilerplate
Production-ready boilerplate for building universal web apps with React and Redux
Stars: ✭ 53 (-60.45%)
Mutual labels:  boilerplate, jest, css-modules
Generator Dhboilerplate
Boilerplate made by David Hellmann
Stars: ✭ 54 (-59.7%)
Mutual labels:  stylelint, boilerplate, scss
React Cool Starter
😎 đŸŖ A starter boilerplate for a universal web app with the best development experience and a focus on performance and best practices.
Stars: ✭ 1,083 (+708.21%)
Mutual labels:  prettier, boilerplate, css-modules
Webpack React Boilerplate
Minimal React 16 and Webpack 4 boilerplate with babel 7, using the new webpack-dev-server, react-hot-loader, CSS-Modules
Stars: ✭ 358 (+167.16%)
Mutual labels:  prettier, jest, css-modules
React Redux Boilerplate
Awesome React Redux Workflow Boilerplate with Webpack 4
Stars: ✭ 307 (+129.1%)
Mutual labels:  boilerplate, jest, css-modules
Yarn Package Boilerplate
An Yarn package with babel, jest, flow, prettier and more
Stars: ✭ 10 (-92.54%)
Mutual labels:  prettier, boilerplate, jest
nextjs-baseweb
Slightly opinionated scaffold of Next.js and Base Web.
Stars: ✭ 46 (-65.67%)
Mutual labels:  jest, nextjs, prettier
React Ssr Starter
All have been introduced React environment
Stars: ✭ 20 (-85.07%)
Mutual labels:  prettier, stylelint, jest
Next Js Blog Boilerplate
🚀 Nextjs Blog Boilerplate is starter code for your blog based on Next framework. ⚡ī¸ Made with Nextjs, TypeScript, ESLint, Prettier, PostCSS, Tailwind CSS.
Stars: ✭ 134 (+0%)
Mutual labels:  static-site, nextjs, boilerplate
Front End Guide
📚 Study guide and introduction to the modern front end stack.
Stars: ✭ 14,073 (+10402.24%)
Mutual labels:  stylelint, jest, css-modules
Node Typescript Boilerplate
Minimalistic project template to jump start a Node.js back-end application in TypeScript. ESLint, Jest and type definitions included.
Stars: ✭ 1,061 (+691.79%)
Mutual labels:  prettier, boilerplate, jest
React Boilerplate
This project is deprecated. Please use CRA instead.
Stars: ✭ 88 (-34.33%)
Mutual labels:  prettier, boilerplate, jest

NextJS Boilerplate

An opinionated boilerplate to kickstart projects using NextJS

Features

  • 👏đŸŧ Next 10
  • ⚛ī¸ React 17
  • 🌊 Custom Document and App
  • ⌨ī¸ Type safety using TypeScript in strict mode
  • 💄 Write SCSS & future CSS with PostCSS + preset-env
  • 🖊 SVG sprite for icons
  • 👀 Lint your code with ESLint & Stylelint
  • 🌈 Prettier for consistent code style
  • 🔨 Jest + Testing Library for tests
  • ☝ī¸ Husky + lint-staged for code quality assurance
  • ⚙ī¸ Editorconfig file for consistent indents
  • 🗄 Redux with react-redux and redux-thunk

Variation branches

Custom server

git clone -b custom-server --single-branch [email protected]:sanjaytwisk/nextjs-ts.git

Enzyme

git clone -b enzyme --single-branch [email protected]:sanjaytwisk/nextjs-ts.git

No redux

git clone -b no-redux --single-branch [email protected]:sanjaytwisk/nextjs-ts.git

Getting started

Before you can start developing your awesome application you need to install the project's dependencies. Make sure you have Node (>= 10.13.0) and NPM installed and run:

$ npm install

⌨ī¸ Development

Once all dependencies have been installed you can start development. To start a development server on http://localhost:3000 run:

$ npm run dev

đŸ–Ĩ Production

To run your application in production make sure to run a build first:

$ npm run build

And then start you application with a provided port number (defaults to 3000 if not provided):

$ PORT=8080 npm run start

🖨 Static

You can export your application to a static website as well:

npm run export

This will render static HTML pages into ./out

🧐 Linters

The boilerplate provides a couple of linters to help you keep an eye on code consistency and type safety. There are three linters: one for CSS, one for TypeScript and one for type safety. You can use each of them separately using the following commands:

$ npm run lint:css
$ npm run lint:ts
$ npm run lint:types

TIP: To get the most out of your linters install the corresponding (Stylelint, TSLint) plugins for your editor or IDE

Prettier

Prettier helps you to enforce consistent (opinionated) code style. If possible, you can tell your editor to format you code when you save a file. If you are not able to do this, you can run prettier manually using:

$ npm run prettier

🤖 Tests

You can write your tests using Jest and Enzyme. You can run all test with the following command

$ npm run test

If you want to follow test driven development you can use:

$ npm run test:dev

Modules

TypeScript

TypeScript and Babel are pre-configured with custom module resolvers. This means you can use absolute imports with custom namespaces by default for the following modules:

/* import common library */
import lib from '@common/<folder>/<lib>'
/* import component */
import Counter from '@components/counter/Counter'
/* import container */
import HomepageCounter from '@containers/counter/HomepageCounter'
/* import store files */
import { CounterAction } from '@store/counter/counterActions'

SCSS

By default the path ./src/common/css is configured as an included path for our scss loader. This means you can import any of this folder's files directly without the relative or absolute path:

@import 'variables';
@import 'colors';
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].