Skip to content

Template for Static Generated Website (SSG), with Common components, Analytics and Advertisement, Contact form, and different Layouts, Legal pages, and so on.

Notifications You must be signed in to change notification settings

umka-co/nextjs-website-starter

Repository files navigation

Public Website Template - Built with NextJS

Mix of Create Next App (App Router) with set of reusable components and utilities to build professional SEO friendly websites.

How to use

  1. Clone the repository
  2. Run npm i to install all dependencies
  3. Copy .env.sample to .env or .env.local and set all required environment variables
  4. Find all TODO: in the code and follow the instructions
  5. Run npm run dev to start the development server
  6. Add your own pages to the /src/app folder
  7. Run npm run build to build the application into out folder
  8. Host the content of the out folder anywhere you want.

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run lint

Checks the code for errors and missing things

npm run format

Formats the code according to ./prettierrc.js config

npm test

Launches the test runner in the interactive watch mode.

npm run build

Builds the app for production or local development to the .next folder.