Look at the Nuxt 3 documentation to learn more.
This API server crashes if started with npm run dev
and then do the following:
- curl localhost:3000/api/version (should give you the jdbc version)
- edit
server/api/version.ts
and change 'Hello JDBC:' to something else, save - (hmr will kick in but only partly because server crashes)
- curl localhost:3000/api/version (hangs because now the dev server errors completely)
Make sure to install the dependencies:
# npm
npm install
# pnpm might not work with the java package
pnpm install
# yarn not tested
yarn install
# bun not tested
bun install
Copy .env.example to .env and adjust
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm not tested
pnpm run dev
# yarn not tested
yarn dev
# bun not tested
bun run dev
Hot Module Reloading probably doesn't work because of the JavaVM :-(
Build the application for production:
# npm
npm run build
# pnpm not tested
pnpm run build
# yarn not tested
yarn build
# bun not tested
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm not tested
pnpm run preview
# yarn not tested
yarn preview
# bun not tested
bun run preview
Check out the deployment documentation for more information.