/demo_web_app

Primary LanguageJavaScriptMIT LicenseMIT

NEXT.JS Demo App

This is a Next.js project bootstrapped with create-next-app and has been added with Redux Saga

Setting the environment

  1. Copy and paste next.config.example.js to next.config.js and fillup all the parameters

Development

  1. First, run the development server.
yarn install
yarn dev
  1. Open http://localhost:3000 with your browser to see the result.

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

Production

  1. Build and run on production server.
yarn build && yarn start

Export to Static App

  1. Build and export.
yarn build && yarn export

dockerize

  1. create the container for the app
docker build . -t demo-web-server
  1. run the container and publish.
docker run -p 4001:80 demo-web-server
  • Note: publish or -p will creates a firewall rule which maps a container port to a port on the Docker host