psperber / w3champions-ui

The webpage for the www.w3champions.com community project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Authenticating as Admin

  1. Clone the backend https://github.com/w3champions/w3champions-statistic-service
  2. Open this file https://github.com/w3champions/w3champions-statistic-service/blob/master/W3ChampionsStatisticService/WebApi/ActionFilters/W3CAuthenticationService.cs and just return an Object that Contains your battletag and IsAdmin = true like
public async Task<W3CUserAuthenticationDto> GetUserByToken(string bearer)
{
    return new W3CUserAuthenticationDto
    {
        BattleTag = "modmoto#123",
        Name = "modmoto",
        isAdmin = true
    };
}
  1. Run the project (F5) in visual studio. This usually opens a browser window with blank page. Copy the url of the page (eg. https://localhost:44336/).
  2. Change the BASE_URL of ui to the backend url you just copied: https://github.com/w3champions/w3champions-ui/blob/master/public/env.js#L3
  3. You should be able to login as admin.

About

The webpage for the www.w3champions.com community project.


Languages

Language:Vue 73.7%Language:TypeScript 22.5%Language:SCSS 2.6%Language:Shell 0.3%Language:JavaScript 0.3%Language:HTML 0.3%Language:Dockerfile 0.2%