This project is powered by Nuxt3.
This project uses
npm
by default, but you can use other package manager likepnpm
if preferred.
Make sure to install the dependencies. This project uses npm
, but it should work with other package manager.
# 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.
Make sure beforehand that proper Dockerfile
has been setup.
docker build -t nuxt-ddd-img .
Build docker image
docker run -it -p 3000:3000 --rm --name nuxt-ddd nuxt-ddd-img
Run project in docker container
To run sonar scanner locally (in docker), you can run this command from the command line.
⚠️ Make sure that current path is the root of this project and you have installedSonarScanner CLI
in docker!
docker run -it -e SONAR_HOST_URL="http://localhost:9000" -e SONAR_SCANNER_OPTS="-Dsonar.projectKey=nuxt-ddd -Dsonar.login=admin -Dsonar.password=password" -v "$(pwd):/usr/src" --net=host --name=sonarscanner-nuxt-ddd sonarsource/sonar-scanner-cli
ℹ️
- Replace
SONAR_HOST_URL
with your local sonar installation url.- Replace
sonar.login
andsonar.password
with your local sonar installation login credential. Or you can use-Dsonar.token=<generated_token>
instead of login cred
Official info related to sonarscanner can be read here.