This project is powered by Nuxt3.
This project uses
npmby default, but you can use other package manager likepnpmif 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 installStart the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run devBuild the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run buildLocally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run previewCheck 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-imgRun 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 CLIin 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_URLwith your local sonar installation url.- Replace
sonar.loginandsonar.passwordwith 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.