Next.js WebApp Starter documentation
  • Introduction
  • Getting Started
  • Folder Structure
  • Development
    • TypeScript Integration
  • Page Components
    • Custom `App`
  • Misc
    • Changelog
Powered by GitBook
On this page
  • Option 1: Use create-next-app
  • Option 2: GitHub's Use this template feature
  • Before you start coding

Was this helpful?

Export as PDF

Getting Started

PreviousIntroductionNextFolder Structure

Last updated 4 years ago

Was this helpful?

Option 1: Use create-next-app

You can use to quickly create a new project with this Starter, by running the following command:

yarn create next-app [project-name] -e https://github.com/nextjs-starter/nextjs-webapp-starter
# or
npx create-next-app [project-name] -e https://github.com/nextjs-starter/nextjs-webapp-starter

Check out the to familiarize yourself with the project's code structure.

Option 2: GitHub's Use this template feature

From this project's click the Use this template button to .

There are two branches. The default branch, named release, contains the code for the latest stable release. The other branch, named canary, is the development branch and holds code for the next release. By default you will only get the release branch. If you want your repository to be created with the canary branch as well, make sure to select the Include all branches checkbox in the repository creation form.

Depending on your workflow either clone, or fork and then clone your repository to your local environment and then do the following:

  1. Install the dependencies:

    cd path/to/app
    yarn  # or npm i
  2. Run the Next.js development server:

    yarn dev
    # or
    npm run dev
    yarn dev -p <some other port>   # e.g. yarn dev -p 3001

Before you start coding

Make sure you have (>= 10.21.0) installed.

Open with your browser to run the web app. To specify a port other than 3000 use the -p flag:

Go forth and code your awesome project! We recommend that you read the .

We ship an opinionated feature set on top of the default app that create-next-app gives you. Check out the to familiarize yourself with the code structure of Next.js WebApp Starter.

Node.js
http://localhost:3000
development guides
development guides
create-next-app
development guides
GitHub repository homepage
create your own GitHub repository from it