Giter Site home page Giter Site logo

-react-next-typescript-boilerplate's Introduction

Next.js With Typescript Example Template

An example template made using Next.js and Typescript to start a new project. The template is setup with Prettier, ESLint, StyleLint and Lint Staged.

Why this template

I made this template because I have to set up every time Prettier, ESLint, StyleLint and Lint Staged for my new next.js projects. And I thought this might be useful for developers who are looking for configuration or starter or example templates.

Before getting started

Make sure you have installed Node.js 12.22.0 or higher on your machine. You can use nvm to manage multiple node version on your machine.

Getting started

You can setup this project using npm or yarn package managers.

I would recommend to installed or enabled yarn package manager on your machine.

Clone repo

git clone https://github.com/binodnepali/nextjs-with-typescript-example-template.git
#or
git clone [email protected]:binodnepali/nextjs-with-typescript-example-template.git

Navigate to cloned repo

cd nextjs-with-typescript-example-template

Install dependencies

yarn install
#or
npm install

Start development server

yarn dev
#or
npm run dev

Open http://localhost:3000 with your browser to see the result.

Build for production

yarn build
#or
npm run build

Start preview server after build

yarn start
#or
npm run start

Open http://localhost:3000 with your browser to see the result.

Run release

Follow the Conventional Commits Specification in your repository. And when you're ready to release, run below scripts.

yarn release
#or
npm run release

Learn More

To learn more about Next.js, ESLint, Prettier, StyleLint and lint-staged, take a look at the following resources:

-react-next-typescript-boilerplate's People

Contributors

nijatbakhtiyar 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.