Skip to content

JonathanRangelB/yoox-web-app

Repository files navigation

Netlify Status CI-CD Dev

YooxWebApp (Angular v18)

angularLogo

Installation

First you should install the Angular CLI globally to be able to use

pnpm install -g @angular/cli

This project uses pnpm by default, using npm also works but pnpm is preffered

Run this command and you should ready to go:

pnpm i

Then configure husky with the next npm command

pnpm run husky:init

Getting .env data from Infisical

.env Example content. Current needed environment variables are:

PRODUCTION: <true|false>,
ENV_NAME: <env-name>,
API_URL: <api-url>,`
  1. Create a new account on Infisical.
  2. Ask to this repo owner to add your account to the YOOX app project.
  3. Download .env file from Infisical for the 'Development' environment or install the Infisical CLI and run the following commands:
infisical login
# and then
infisical export > .env
  1. Finally, once you have the .env file, you can run the following command to generate the .env file in the project root:
pnpm run env

Note

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

Development server

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.

Code scaffolding

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.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests with Cypress.io.

Recommended VScode plugin installations

ESLint

Prettier - Code formatter

Angular Schematics

Auto Import

TypeScript Importer

Auto Close Tag

Auto Rename Tag

About

Yoox web platform

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •