Skip to content

This project includes a simple dockerized webApp/PWA with NextJS Framework (react)

Notifications You must be signed in to change notification settings

JinDouang/next-playground

Repository files navigation

next playground

Setup

./build.sh install

Development (docker mode)

# clean and build new one
./dev.sh "new" 

# use existed image to run container
./dev.sh 


# Alternative
./build.sh stop && docker-compose up -d && docker logs -f next-playground --since 0s

Development (standard)

Prerequisites

  • Node 18+ (node 18-alpine)

Setup

npm install
# or
yarn install

development server:

npm run dev
# or
yarn dev

Contribution development

Standard

Check lint

npm run lint
# or
yarn run lint

Check build

npm run build
# or
yarn run build

With docker

Check lint

./build.sh lint

Check build

./build.sh build

Environment

to change ./environment/.env-local

production

create file ${name_env}.json and start :

# example project root /app
touch env-production.json
# insert content
# /app/* -> projects location
# /app/env-production.json 

NODE_PROD='env-production.json' yarn run build && NODE_PROD='env-production.json' yarn run start 

About

This project includes a simple dockerized webApp/PWA with NextJS Framework (react)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published