Login, token-authentication, CRUD operation with angular 6 and .net core2 webapi
The repository consists of projects as below:
# | Project Name | Project detail | location |
---|---|---|---|
1 | WebApi | Asp.Net Core2 WebApi as backend | backend folder |
2 | client | angular 6 as front end | client folder |
Download/install Dotnet core2.1 to run webapi project
Download/install Node to run the angular6-webapi [front end] application
Download/install Visual Studio Code to run/debug the applications
Download/install git bash and configure witin Visual Studio Code by putting
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
in the users setting.Please verify the location of thebash.exe
and modify as per its locationIn Visual Studio Code, please install a C# extension
Please clone or download the repository from github
Create a folder and place the downloaded repository
Open Visual Studio Code and open the newly created folder where the repository is downloaded
Within Visual Studio Code open a command terminal by pressing the computer keyboard buttons
Control
and~
Within the terminal, browse to folder location named as "backend"
Restore the dependencies, type
dotnet restore
on the terminalRun the webapi project, type
dotnet run
on the terminalWebapi [backend service] shall start running on port 5000
Within Visual Studio Code Open a new command terminal
Within the new terminal, browse to the folder named as "client"
To restore the dependencies, type
npm install
on the terminalNow in order to run the angular6-webapi (front end application), type
npm start
on the terminalShortly a browser shall open with url as
localhost:5050
For better experience please chrome browser
Having any trouble? Please read out this documentation or contact and to sort it out.