Skip to content

aaronjewell/w3champions-ui

 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 73.5%
  • TypeScript 22.7%
  • SCSS 2.7%
  • Shell 0.3%
  • JavaScript 0.3%
  • HTML 0.3%
  • Dockerfile 0.2%