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 .env
to 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 start
start:dev - Starts the application in development mode with watch enabled.
yarn run start:dev
start:prod - Starts the application in production mode.
yarn run start:prod
dev - Starts the Vite development server.
yarn run dev
preview - Previews the production build using Vite.
yarn run preview
tsc - Runs TypeScript compiler (tsc) without emitting any files.
yarn run tsc
lingui:extract - Extracts translations with LinguiJS, and removes obsolete translations.
yarn run lingui:extract
lingui:compile - Compiles translations with LinguiJS and outputs TypeScript files.
yarn run lingui:compile
prebuild - Compiles translations before building.
yarn run prebuild
build - Compiles TypeScript and then builds the project using Vite.
yarn run build
lint - Lints TypeScript files with ESLint.
yarn run lint
format - Formats the code using dprint.
yarn run format
test - Runs both unit and UI tests.
yarn run test
test:unit - Runs unit tests with Jest using a specific configuration.
yarn run test:unit
test:ui - Runs UI tests with Jest using a specific configuration.
yarn run test:ui
test:coverage - Runs unit tests with Jest, generating coverage information.
yarn run test:coverage