Note: The Node.js code sample uses the 8081 HTTP port.
Before you begin creating an application with this devfile
code sample, it's helpful to understand the relationship between the devfile
and Dockerfile
and how they contribute to your build. You can find these files at the following URLs:
- The
devfile.yaml
file has animage-build
component that points to yourDockerfile
. - The
docker/Dockerfile
contains the instructions you need to build the code sample as a container image. - The
devfile.yaml
kubernetes-deploy
component points to adeploy.yaml
file that contains instructions for deploying the built container image. - The
devfile.yaml
deploy
command completes the outerloop deployment phase by pointing to theimage-build
andkubernetes-deploy
components to create your application.
This stack is licensed under the EPL 2.0 license.
- For more information about Node.js, see How do I start with Node.js after I installed it?.
- For more information about devfiles, see Devfile.io.
- For more information about Dockerfiles, see Dockerfile reference.
Look at the Nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
Check out the deployment documentation for more information.