/webapp

Primary LanguageTypeScript

webapp

Preparations

Install Node.js Version Manager:

https://github.com/nvm-sh/nvm#installing-and-updating
nvm use
corepack enable && corepack prepare

Installation

corepack pnpm i # If you don't have pnpm installed, run: corepack enable

Usage

Development

Just run and visit http://localhost:3333

pnpm dev

Build

To build the App, run

pnpm build

And you will see the generated file in dist that ready to be served.

Testing

pnpm test:unit

Docker Production Build

First, build the webapp image by opening the terminal in the project's root directory.

docker buildx build . -t webapp:latest

Run the image and specify port mapping with the -p flag.

docker run --rm -it -p 8080:80 webapp:latest