First you should install the Angular CLI globally to be able to use
pnpm install -g @angular/cliThis project uses pnpm by default, using npm also works but pnpm is preffered
Run this command and you should ready to go:
pnpm iThen configure husky with the next npm command
pnpm run husky:init.env Example content. Current needed environment variables are:
PRODUCTION: <true|false>,
ENV_NAME: <env-name>,
API_URL: <api-url>,`
- Create a new account on Infisical.
- Ask to this repo owner to add your account to the YOOX app project.
- Download
.envfile from Infisical for the 'Development' environment or install the Infisical CLI and run the following commands:
infisical login
# and then
infisical export > .env- Finally, once you have the
.envfile, you can run the following command to generate the.envfile in the project root:
pnpm run envNote
Validate if the contents of the .env file matches the contents of the .env example above since the environment.ts file contents might have invalid data injected
Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests with Cypress.io.
