This is a seed for Dotnet Core Webapi server. To see how it works in action, try out our github-client repository.
Database type is SQLLite
- Login with Github account:
/api/account/login-github
- An on site account will be created and linked to the github account.
- On site account can only be created automatically by login with github account.
- User can login with local account or login with Github account.
- Comprehensive account management:
- Create Password:
api/account/create-password
- Change Password:
api/account/change-password
- Recover Password:
api/account/forgot-password
andapi/account/reset-password
- Create Password:
- Register an OAuth application on github: Login in your github account:
Settings
->OAuth applications
->Developer applications
, register a new application:- Call back url:
http://localhost:4200/user-center/login-github
- Call back url:
- Add your secret: follow the Safe storage of app secrets during development, add your secret acquired from previous step.
- Get the Webapi server running: in the project directory, run the following commands:
dotnet restore
dotnet ef database update
dotnet watch run
- The should be running and listening to port 5000(http) and 44396(https). Both 127.0.0.1 and localhost are working.
Please see repository Github-client, it is an Angular-cli generated project with Angular 2 RC5. Interface is made up with Semantic-ui and ng-semantic.
Note: replace the ClientId with your own clientId in the Github-client.