Skip to content

Files

Latest commit

8cc41fd · Jan 20, 2024

History

History
55 lines (35 loc) · 745 Bytes

README.md

File metadata and controls

55 lines (35 loc) · 745 Bytes

js-webapp-template

Setup

Install packages:

pnpm install

Development

Launch app in dev mode:

pnpm run dev

Production

Build assets for production:

pnpm run build

After that, you'll find all build artifacts in the build directory.

Then you need to start the built server:

pnpm start

Docker

You can also build a docker image:

docker build -t js-webapp-template .

And then run it:

docker run -it --rm -p 8080:8080 js-webapp-template

Or most probably deploy it somewhere.

Environment Variables

dotenv-flow reads files like .env, env.local to setup environment variables. For details see dotenv-flow docs