ASP.NET Core Web API + Entity Framework Core : Deploy to IIS - EP12

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this episode I'm going to talk about how you can deploy East Wheelock makeover be pi/2 is I already deployed my books or CP advice and let's down the steps so I'm gonna go through the steps and talk about why do you have to perform the steps and how you can do it so the first step is to make sure that the is installed on your machine to check that I'm gonna run a command called as option features which will open a window and let's down the features which are already installed on your machine you need to make sure that Internet Information Services is already installed and an Internet information system make sure that World Wide Web Services and is management console is already installed if it's not installed please install it and you might have to restart your machine I already have it installed so I should be able to search it in my sock startup window here so if I type in ass then I can open my ass services and here you can find your default website which you should be able to browse on body 80 so you can see that this is ISS default page so ice is already installed my machine the next step is to install a spiel on Nicole and time module I'm gonna share this link with you and this link will take you to the latest version of runtime bundle and this runtime bundle includes dotnet quarantine speed of net current time and if you install it then it will add a speed octa-core um go to a Korres eyes module to your eyes if your is is you know Isis and so on your machine so if I currently check on my pass code modules I don't see any a spirit neck or module installed on my modules here and if I go back to my chrome and install this bundle then it should install it should install the the runtimes and the modules to my eyes so if I go back and check on my modules you can see that HP of make or model version 2 is installed on my eyes so my eyes is ready to handle is been on their core related requests okay so the next step the next step is to publish the project to a folder so I'm gonna go to my visual studio and I'm going to create a folder first so I'm gonna go to my solution folder here and go to bookstores and create a folder here colors publish and then I'm gonna create another folder in this because I have a front-end app too so that's going to be a different folder I'm gonna call it boosters API or the API and in this folder we're going to we're going to publish our API so I'm gonna right click on my BPM and go to publish and here we just suitable the stone of all the methods along all the areas where you can publish your package of API we're going to select folder and click on next and by default it will give you the folder of you know the bin folder Bentley's folder where you can publish your website but you have already created a folder in which we are going to publish our beta p.m. so go to data your stripe wrapper bookstores publish books to CPM okay and I'm gonna click on finish and then publish so when I click on publish you know it will double to my application and put all assemblies in in the folder that we selected we wanted to publish part if yet so I click on this folder it will open the folder and you can see that you know all the details that we used for our API are listed down here all the super related all JWT although dealers are published in this folder so the next step that we need to do we need to refer we need to create a website and refer our website i has website to this published folder but before we do that I'm going to change both of the default website to 90 because I want my website the new website the bookstore website the web api to our to point it to port 80 and not thus default absolute I'm gonna go right click and click on edit bindings select the site bindings edited and say that the default website is going to put it to that the port of default website is going to be 90 sweet and then closeness and once we change this thing we're going to create then weight and then we're going to create a website with code 80 which we are going to link it to the published folder so I'm gonna go back to our s and then click on right click on the sides I had website and name our website to book stores API sorry and in the physical part I'm gonna select the part that are part of the wrong published folder so I'm going to go to repo bookstores publish and select bookstores API suite and you can see that the application is going to run on port 80 and click on ok so and that's all you need to do to deploy your API to eyes so if I click on browse here it's gonna give me an error it's not gonna give me an error but if I go to my API here I might have to restart my eyes so let's go ahead and restart the eyes yeah you start by BPM and if I go back here and um you know click on localhost API authors get out that's the link to get author number one and they should return author from my VP I know this is hosted on our eyes and I can even also you know use the swagger go to swagger URL and open swagger and you know try my API execute the commands and it will list on all the authors in my system and I can test it out I can even use my IP address and go to the swagger URL and then I should be able to you know use this IP address in the machines which are on the network you can open up your phone and go to this URL if the phone is in the same network and you should be able to use swagger from your phone ok one last thing actually there are two things when we created this bookstores API it created an application pool the application pool is the dotnet cellular version pointing to dotnet for and this is something that you can change you don't really have to change it but it's recommended to change it to no managed code because you know we are not using dotnet dotnet full framework runtime this is our runtime is it gets booted up in the worker process so you don't really need to select the CLR 2 framework 4 or 2 so this will increase the performance of your application so it's recommended to do it so please do that and if I change that you know change that and restock my API oh my ass and go back here I should still be able to browse my swagger and test my API and the second thing that I had to change is 2 is the sequel Express connection strange so when we started with the series I used Windows authentication as the connection string in my app settings and I had to change to summer authentication you know create a server server admin and then set a password and I had to use that connection string to make it work right you know to care you know to browse the data from my eyes so please make sure you do that and yeah that's all you need to do to deploy your books towards API to us if you have any questions you can reach out to me on Twitter Facebook I could live on twitch so if you want to come and say hello and don't forget to subscribe the channel thanks for watching bye
Info
Channel: CuriousDrive: Solve Coding Challenges & Win Prizes
Views: 29,086
Rating: undefined out of 5
Keywords: .net, vsual studio, programming, c#, visual studio code, .net core, msbuild, web, asp.net, developer, code, librararies, .netstandard, javascript interop, windows, linux, macOS, open source, free, app, ecosystem, performance, reliability, security, classes, assemblies, MVC, dotnetconf, web api, api, REST, asp.net core, serialization, Authentication, authorization, Routing, HTTPS, JSON, Entity Frramework Core, SQL, Microsoft.EntityFrameworkCore.SqlServer, Scaffold, HTTP Methods, Microsoft.EntityFrameworkCore.Tools
Id: b0v4_Kv4_RA
Channel Id: undefined
Length: 9min 29sec (569 seconds)
Published: Sat Apr 18 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.