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 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.
The application uses a standalone script to migrate expense descriptions to the MRU (Most Recently Used) database. This ensures the description autocomplete list stays up-to-date.
To set up daily automated migration at midnight, add this to your crontab:
# Open crontab editor
crontab -e
# Add this line (adjust path to your installation)
0 0 * * * cd /Users/julianteh/julwrites/homelab/it_services/CashRegister/cash-register && node scripts/migrate-descriptions.mjs >> logs/migration.log 2>&1To run the migration manually:
node scripts/migrate-descriptions.mjs