This is a starter for a Web UI project that uses:
All the instructions below consider pnpm tool, instead of the classic NPM, again, just from an efficient point of view.
pnpm i
to install the dependencies.
Run in development mode using pnpm run dev
or the included run_dev.sh
script.
Navigate to localhost:5000 to access the app.
Use pnpm run build
to create an optimised version of the app, ready to be deployed.
Use pnpm run start
to run the newly built app.
By default, sirv will only respond to requests that match files in public
. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere.
If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for any path. You can make it so by editing the "start"
command in package.json:
"start": "sirv public --single"