diablo4.trading frontend application
Follow this setup guide - Windows Setup Instructions
Docker will user this file for project specific environment variables
-
Create a new GitHub personal access token with the following scopes:
read:packages -
Update .env File: run
cp .env.example .envto create a new .env file. Update the new .env file with SANCTUARYTEAM_AUTH_TOKEN=YOUR_NEW_TOKEN
To get your application up and running:
- Ensure you have both Docker and Docker Compose installed.
- Navigate to the directory containing your docker-compose.yml file.
cd ~/sanctuaryteam/diablo4trading-fe- Run the following command:
docker compose up - Access the Application: Once the containers are up and running, you can access the application in your browser using the URL: http://localhost:5173
start - Starts the application in development mode.
yarn run startstart:dev - Starts the application in development mode with watch enabled.
yarn run start:devstart:prod - Starts the application in production mode.
yarn run start:proddev - Starts the Vite development server.
yarn run devpreview - Previews the production build using Vite.
yarn run previewtsc - Runs TypeScript compiler (tsc) without emitting any files.
yarn run tsclingui:extract - Extracts translations with LinguiJS, and removes obsolete translations.
yarn run lingui:extractlingui:compile - Compiles translations with LinguiJS and outputs TypeScript files.
yarn run lingui:compileprebuild - Compiles translations before building.
yarn run prebuildbuild - Compiles TypeScript and then builds the project using Vite.
yarn run buildlint - Lints TypeScript files with ESLint.
yarn run lintformat - Formats the code using dprint.
yarn run formattest - Runs both unit and UI tests.
yarn run testtest:unit - Runs unit tests with Jest using a specific configuration.
yarn run test:unittest:ui - Runs UI tests with Jest using a specific configuration.
yarn run test:uitest:coverage - Runs unit tests with Jest, generating coverage information.
yarn run test:coverage