Make sure to install dependencies:
npm installStart the development server on http://localhost:3037:
npm run devBuild the application for production:
# SSR
npm run build
# SPA
npm run generateLocally preview production build:
npm run previewThis project uses GitHub Actions (docs) for automated deployment. The workflow is defined in the .github/workflows/deploy.yml file.
When code is pushed to the main branch, the workflow is triggered, and it performs the following steps:
- Installs dependencies
- Builds the application for production
- Deploys the built files to the hosting platform
You can view the deployment status and history in the GitHub Actions tab.
This project adheres to a specific coding style and formatting guidelines. To ensure consistency, we use ESLint and Prettier.
To format your code, run:
npm run formatTo lint your code, run:
npm run lintAdditionally, we use Git hooks to enforce formatting and linting rules on commit. This is configured using Husky and lint-staged, as specified in the .husky and .lintstagedrc files.
When you commit code, the following checks are performed:
- Code is formatted using Prettier
- Code is linted & fixed using ESLint
If any issues are found, the commit will be rejected, and you will need to fix the issues before committing again.
By following these guidelines, we maintain a clean and readable codebase.