Skip to content

nais/console-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9ea650b · Mar 4, 2024
Feb 22, 2024
Feb 14, 2024
Feb 23, 2024
Mar 4, 2024
Jun 13, 2023
May 31, 2023
Feb 6, 2024
Jun 2, 2023
Sep 26, 2023
Feb 22, 2024
Apr 26, 2023
Jun 23, 2023
Jun 2, 2023
Sep 26, 2023
Oct 24, 2023
Feb 14, 2024
Feb 6, 2024
Jan 11, 2024
Feb 21, 2024
Feb 20, 2024
Mar 1, 2024
Sep 27, 2023
May 3, 2023
Feb 5, 2024
Feb 20, 2024

Repository files navigation

Console frontend

Development

The following snippet contains the most important commands for development.

npm install
cp .env.example .env # Copy the example environment file
npm run dev # Starts a development server on port 5173

npm run check # Check for various issues
npm run lint # Lint the code
npm run format # Format the code (Or use a Prettier extension in  your editor)

User

In production api uses oauth2 to authenticate users. In developmen

Local user override

When running locally, the frontend will proxy requests to the backend through a Vite Proxy. This proxy will add a special header for local development to specify which user to run as.

There's two well known users:

User Description
dev.usersen@example.com A user with tenant wide permissions, but owns a team
admin.usersen@example.com A user with all permissions

You can specify which user to run as through .env. See .env.example for an example.

Using OAUTH

To use the oauth flow, you need to configure api with correct credentials, and the user has to exist in the database.