Skip to content

joncursi/next-base

Repository files navigation

Next Base

⏭️ Base setup for a Next.js front-end. Includes:

CircleCI

Getting Started

  1. Install node modules:

    npm install
  2. Create a .env file in the root of this project and fill it with environment variables.

  3. Start the server in dev mode:

    npm run dev
  4. Start the server in production mode:

    npm run build
    npm start

npm Scripts

There are lots of npm scripts at your disposal during local development. Here are some of the more important ones:

Script Description
npm run analyze Shows interactive visualization of the webpack bundle.
npm run dev Starts the local dev server.
npm run build Builds a production distribution.
npm start Starts the server in production mode.
npm test Run all tests.