For multi-language support, generate concise and distinct keys for localization files or dictionaries. Using abbreviated keys produced by acronymer
simplifies the localization process and ensures consistency across translations.
- Install node.js and npm.
- Run
npm install
to install the dependencies.
- Copy the contents of the
.env.example
file to a.env
next to it, and edit it with your values. - Run
npm run build
to build the files. - Run
npm run start
to start the application.
- You can run
npm run dev
to combine the 2 steps above, while listening to changes and restarting automatically.
- Installing the Eslint (
dbaeumer.vscode-eslint
) and Prettier - Code formatter (esbenp.prettier-vscode
) extensions is recommended.
- Run
npm lint
to lint the code. - Run
npm format
to format the code.
Check the test examples to get started :
/src/app.ts
that provide the main logic/test/app.spec.ts
who test the main function
To run the tests :
- Run
npm test
to execute all tests. - Run
npm test:watch
to run tests in watch (loop) mode. - Run
npm test:coverage
to see the tests coverage report.