Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

RubenSibon/next-starter

Repository files navigation

Starter for Next.js projects

This is a starter project for Next.js projects with TypeScript, Styled Components, ESlint, Jest, Playwright, commitlint, husky and Docker.

Getting Started

Install the project on your desired environment:

npm install
# or
pnpm install
# or
yarn

Local development server

To run a development server on your machine do:

npm run dev
# or
pnpm run dev
# or
yarn dev

Go to: Check out the app running in dev mode

Docker development server

To run the development server inside a Docker container do:

docker build -f Dockerfile.dev -t RubenSibon/next-starter:dev .
docker run -p 3000:3000 --name next-starter-dev RubenSibon/next-starter:dev

Or use Docker Compose to run the dev server and the jest test suite:

docker compose -f dockerp-compose.dev.yml build
docker compose -f dockerp-compose.dev.yml up

Go to: Check out the app running in dev mode

Check out the app running in dev mode

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

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

Deploy

Build and start app

To build and start the production server:

npm run build && npm run start
# or
pnpm run build && pnpm run start
# or
yarn build && yarn start

Docker production server

To run the production build inside a Docker container do:

docker build -t RubenSibon/next-starter:latest .
docker run -p 3000:3000 --name next-starter RubenSibon/next-starter:latest

Or use Docker Compose:

docker compose build
docker compose up

Quality assurance

In order to ensure this application is up to the highest quality standards some automated system checks are in place:

Dependencies

  • Node 16.x

Learn More

This is a Next.js project bootstrapped with create-next-app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published