Mahmudur Rahman
Mahmudur Rahman
  • 15
  • 19 772
Hand on Tutorial: Basic MVC web application in Asp.net Core 3.1, VS2019 Step by Step
The first MVC Core Web application... :)
1. Pre-requisites:
VS 2019 : download link: visualstudio.microsoft.com/downloads/
Lets start:
1. create a mvc web application project in core 3.1 from the given templates
2. Open vs2019
3. Select create new project
4. Selecting the core as this can be hosted in various platform -- next
5. give a project name. location -- next
6. select version ( we will be using 3.1)
7. select web application (mvc)
8. with https support
9. enable razor run time compilation (we need to fix things during run time)
10. Create.
11. so, we have the application.. now run (f5) or from the debug-- run
15. so here is our first app, without doing anything..
16. lets make a small change in the home page, so see the result... working
17. lets create a menu item following these sub steps
1. add a new Controller named as MyFirstController.cs
2. add a view using right button..
a. the layout will be used from shared directory "~/Views/Shared/_Layout.cshtml"
b. lets run the app
c. make change in the view and refresh.. working
d. I am calling the view by controller name.. and its loading the default view "index"
e. lets add another view.. "MySecondView"
f. now giving the new view a layout and few line to see..
just read: a single controller can have multiple actions, with can return view or something else. You can call the same view from different controller. If you want to call some other view from other folder, you need to use the path to call the view. TC.
g. now will add a action in the controller to load this view..
h. i have kept the view name as the view page name, so when running the app..
i. I am calling the view by controller name/view name : MyFirst/MySecondView ... working..
j. now lets add these views as menu items...
k. the _Layout contains the menu bar in this sample project.. lets make some changes.. run...
So this the the very basic of mvc using given project template from microsoft... hope now you can start.. making small projects..
Happy coding... take care... :)
Github Source: github.com/mroyon/MyFirstMVCWebApp
------------------------------
Walk Around by Roa soundcloud.com/roa_music1031
Creative Commons - Attribution 3.0 Unported - CC BY 3.0
Free Download / Stream: bit.ly/walk-around-roa
Music promoted by Audio Library th-cam.com/video/BimtUhUirnw/w-d-xo.html
-----------------------------
#ASP.NetCore
#MVC
#WEBApplication
มุมมอง: 40

วีดีโอ

Hand on Tutorial: How to Publish a VS2019 Core web app on local docker & keep the image Step by Step
มุมมอง 363 ปีที่แล้ว
Publish a VS2019 Core web app on local docker pre-requisites: 1. vs2019 download link: visualstudio.microsoft.com/downloads/ 2. vscode download link: code.visualstudio.com/download 3. desktop docker download link: docs.docker.com/docker-for-windows/install/ lets start: 1. create a core web app 3.1 project from the template 2. run the project a. run from IISExpress - done b. disable the https re...
Hand on Tutorial: How to Set up MSSQL Server 2019 on Ubuntu Docker from the scratch, Step by Step
มุมมอง 1103 ปีที่แล้ว
Microsoft SQL Server 2019 deploy on Docker (Ubuntu 20) Pre-requisites: 1. Docker desktop a. download link: docs.docker.com/docker-for-windows/install/ b. install and signed 2. vscode (very help full): a. download link: code.visualstudio.com/download Lets start: 1. open vscode 2. open new terminal 3. docker ps - all the running images. 4. pull mssql 2019 image for linux (hub.docker.com/_/microso...
Hand on Tutorial: Docker composer and vs2019 Core Web App and Core Web Api communication.
มุมมอง 573 ปีที่แล้ว
Docker composer and vs2019: 1. create a core 3.1 web app (mvc) 2. create a core 3.1 web api 3. host the two app on docker images (linux) 4. consume the web api from web app (docker to docker) Pre-requisites: 1. VS2019 - download link: httns://visualstudio.microsoft.com/downloads/ 2. Docker (desktop) version installed and signed in - download link: httns://dons.docker.com/docker-for-windows/inst...
Kihon Kata By Rezayee
มุมมอง 1283 ปีที่แล้ว
Student: Rezayee Rabbi Rahman Instructor: ANEESH Sir. SHITO RYU Karate Club Kuwait My son is learning SHITO RYU, wish him all the best. #kihonkata #shitoryukarate #kihonkataichi
MongoDB Cluster Replication and Fail-over - ubuntu. Step by step guideline
มุมมอง 6K3 ปีที่แล้ว
MongoDB Enterprise Replication and Failover cluster Step by step Hello, welcome to my channel. In this video, I tried to show how to implement "MongoDB Master/Slave replication" from the scratch and addition to this, also showed how fail over managed. The steps are in details and in sequence to deploy a successful case. How to join the ubuntu server in windows AD. please check the other video f...
Redis Cluster Replication and Redis Sentinel Failover (HA) with Endpoint Route HAProxy
มุมมอง 7K4 ปีที่แล้ว
Hello, welcome to my channel. In this video, I tried to show how to implement "Highly Available Redis Master/Slave replication" from the scratch and addition to this, also showed how to implement cluster fail over managed by sentinel service and how the application will point to master based on HAPROXY routing. The steps are in details and in sequence to deploy a successful case. How to setup h...
HAproxy load balancer install and configure for multiple web servers IIS,Nginx. Server Farm.
มุมมอง 2.7K4 ปีที่แล้ว
Hello, welcome to my channel. In this video, I will try to demonstrate " haproxy " installation and configuration. In my earlier video, I deployed Microsoft NLB to balance the ARR-A & ARR-B (both IIS based Application request routing server) pointed to 3 IIS (IIS-A, IIS-B and IIS-C). In this video, I will replace the Microsoft NLB with haproxy. Also, will show how to configure step by step from...
Step by Step tutorial for ASP.Net Core 3.1 Web Application Hosting on Ubuntu - Part 3: The hosting
มุมมอง 2484 ปีที่แล้ว
Hello, first, welcome to my channel. There will be sequence of videos starting 1. Deploying Ubuntu on VM-Workstation and then configure it to join Windows Server Active Directory Service 2 Configure Ubuntu to join Windows Server Active Directory Service 3. Configure and run nginx and host multiple domain & Deploy ASP.Net Core 3.1 nd Runtime and deploy ASP.Net Core Web Application on nginx and t...
Step by Step tutorial for ASP.Net Core 3.1 Web Application Hosting on Ubuntu-Part 2: Ubuntu Join AD
มุมมอง 2304 ปีที่แล้ว
Hello, first, welcome to my channel. There will be sequence of videos starting 1. Deploying Ubuntu on VM-Workstation and then configure it to join Windows Server Active Directory Service 2 Configure Ubuntu to join Windows Server Active Directory Service 3. Configure and run nginx and host multiple domain 4. Deploy ASP.Net Core 3.1 nd Runtime and deploy ASP.Net Core Web Application on nginx and ...
Step by Step tutorial for ASP.Net Core 3.1 Web Application Hosting on Ubuntu - Part 1: Deploy Ubuntu
มุมมอง 3904 ปีที่แล้ว
Hello, first of all welcome to my channel. There will be sequence of videos starting 1. Deploying Ubuntu on VM-Workstation and then configure it to join Windows Server Active Directory Service 2 Configure Ubuntu to join Windows Server Active Directory Service 3. Configure and run nginx and host multiple domain 4. Deploy ASP.Net Core 3.1 and Runtime and deploy ASP.Net Core Web Application on ngi...
Day - 4: How to: Step by Step tutorial for ASP.Net Hosting Environment: MSSQL Server Cluser
มุมมอง 2596 ปีที่แล้ว
Hello, first of all welcome to my channel. This is the day - 4 video tutorial of setting up ASP.Net hosting environment. This Video tutorial focused on Setup up two windows server 2016 and deploy services i.e. Failover - Cluster and MSSQL Server Clustering and test from clients. Again need to say, regarding the length of the video, which is quite big, but my intension was to show detail level. ...
Day - 3: Step by Step tutorial for ASP.Net Hosting Environment: IIS, ARR, Web Server Farm, DFS-R
มุมมอง 1K6 ปีที่แล้ว
Hello, first of all welcome to my channel. This is the day -3 video tutorial of setting up ASP. Net hosting environment. There will be total 5 videos to complete the scenario. This Video tutorial focused on Setup up two windows server 2016 IIS and deploy services i.e. IIS, DEFS-R. Then configure IIS Web Farm and Distribute request. I also tried to give a little touch regarding Wireshark and JMe...
Day - 2: Step by Step tutorial for ASP.Net Hosting Environment: IIS, DFS-R, ARR
มุมมอง 4736 ปีที่แล้ว
Hello, welcome to my channel. This is the day -2 video tutorial of setting up ASP.Net hosting environment. There would be total 5 videos to complete the scenario. This video tutorial focused on Setup up two windows server 2016 and deploy services i.e. IIS, DEFS-R and NBL and test from two clients. Again need to say, regarding the length of the video, which is quite big, but my intension was to ...
Day - 1: Step by Step tutorial for ASP.Net Hosting Environment: Active Directory, Domain Name Server
มุมมอง 5016 ปีที่แล้ว
Hello, first of all welcome to my channel. This is the day -1 video tutorial of setting up ASP.Net hosting environment. There will be total 5 videos to complete the scenario. This Video tutorial focused on Setup up Active Directory and DNS and then built two clients all from the scratch. By “scratch” I mean, from configuring VM and to Configuring Windows Server 2016. The length is quite big, bu...

ความคิดเห็น

  • @illgrim1163
    @illgrim1163 8 หลายเดือนก่อน

    best video

  • @futhedude4848
    @futhedude4848 ปีที่แล้ว

    There's a vietnamese version of this video from "Devops Mentor" channel, which really easy to understand (for vietnamese people only i think), i watched that video and found this video, which is really cool tho.

  • @aniketpatil-d8e
    @aniketpatil-d8e ปีที่แล้ว

    Instead of vm can we use AWS EC2 and Mongo DB

    • @mroyon
      @mroyon ปีที่แล้ว

      definitely yes..

    • @mroyon
      @mroyon ปีที่แล้ว

      docs.aws.amazon.com/dms/latest/sbs/chap-mongodb2documentdb.02.html

    • @mroyon
      @mroyon ปีที่แล้ว

      www.geeksforgeeks.org/how-to-install-mongodb-on-aws-ec2-instance/

  • @anandatole6529
    @anandatole6529 2 ปีที่แล้ว

    Instead of Mongo Enterprises can we use only Mongo DB

    • @mroyon
      @mroyon 2 ปีที่แล้ว

      There are two version, community and enterprise. Yes you can do with either of the version.

  • @stocktip8030
    @stocktip8030 2 ปีที่แล้ว

    too fast. not a good way to present !

    • @mroyon
      @mroyon 2 ปีที่แล้ว

      Dear, sorry for the speed.. the target was to cover it within 10 min. next time, gonna try to go slow. thanks for the feedback.

  • @qrshat5334
    @qrshat5334 2 ปีที่แล้ว

    Could Mahmudur Rahman please share with us the repository setting for redis and sentinel?

  • @gskirmizi3001
    @gskirmizi3001 2 ปีที่แล้ว

    Thnx bro

  • @amryamudi1293
    @amryamudi1293 2 ปีที่แล้ว

    all server mongo-a , mongo-b, mongo-c in VM. what about client ? . if not mistaken the client run on windows. This client also in VM?

    • @mroyon
      @mroyon 2 ปีที่แล้ว

      The client is what ever you want.. lets say.. you have an web serber might be iis or nginx etc.. where you application log dumped in to the mongodb.. so you client is the web server.. its a database server.. so think of anything that could uaed the db as a container will be the client.. and it could be on vm on docker on physical machine... erc.

  • @lionelblak
    @lionelblak 3 ปีที่แล้ว

    Lose the music, brother

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      noted..and thanks.

  • @aboubakerpe5161
    @aboubakerpe5161 3 ปีที่แล้ว

    Thank You can a video on, how to use ldap directory

    • @mroyon
      @mroyon 2 ปีที่แล้ว

      Usage of LDAP. Usage. .. would you please pick some specific topic so i can try to make vdo on those..

  • @jgimagensaereas
    @jgimagensaereas 3 ปีที่แล้ว

    Great video. I have a question. Can I use the same approach but instead of using three different servers, can I use only one server for the cluster?? What should change If I use one server? thanks.

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      Yes.. definitely you can. And it is very common. You need to have seperate co fig for each instance. Its like.. you are running three instance of redis on a single server and the only change is in the ip and port..

  • @samueltorres8107
    @samueltorres8107 3 ปีที่แล้ว

    Como puedo replicar de Master to Master puedes hacer un video sobre eso ? (How can I replicate from Master to Master can you make a video about that?)

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      Can you please let me know more about the scenario.. master to master u have two master.. you just want to sync right..?

  • @carlossima4977
    @carlossima4977 3 ปีที่แล้ว

    Does someone know if is possible to apply an AWS ELB solution instead HAProxy?

  • @driggsalonzo9409
    @driggsalonzo9409 3 ปีที่แล้ว

    which endpoint should I use in terms of connecting my app?

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      The enpoint should be directly towards haproxy ip and specific port for redis listener. The switching will be handled by the proxy server.

    • @driggsalonzo9409
      @driggsalonzo9409 3 ปีที่แล้ว

      @@mroyon hi, is this correct? default redis port used. redis1-192.168.1.2 redis2-192.168.1.3 haproxy-192.168.1.4 my app should connect to 192.168.1.4:6379?

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      @@driggsalonzo9409 yes.. if you take a look at the haproxy config of my vdo.. frontend front_redis bind 192.168.1.125:6379 name redis The front end listener is the endpoint for your app.. and the backend Server redis-a 192.168.1.121:6379 check inter 1s server redis-b 192.168.1.122:6379 check inter 1s server redis-c 192.168.1.123:6379 check inter 1s From your app the u should point to the proxy with port so it forward it to ur actual redis server.

    • @driggsalonzo9409
      @driggsalonzo9409 3 ปีที่แล้ว

      @@mroyon Thank you!

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      @@driggsalonzo9409 you are always welcome. tc

  • @kaftest3251
    @kaftest3251 3 ปีที่แล้ว

    Short and simple, thank you for the VDO

  • @fasooly1992
    @fasooly1992 3 ปีที่แล้ว

    Hello I have a question why are we using AD to route to the HAPROXY? is it a configuration requirement or is done for other reasons? Can we the user access the servers directly to the HAPROXY?

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      The purpose of using AD is to resolve the name service. Hence i have deployed windows server for dns and AD. If you notice that in the haproxy i used full name quantifiers, the AD or the DNS server is helping to resolve the name. Haproxy ent 1.8 has the capability to act as dns and can be used to resolve names. But i prefered Windows server DNS.

    • @fasooly1992
      @fasooly1992 3 ปีที่แล้ว

      @@mroyon Thanks for the clarification

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      @@fasooly1992 you are most welcone

  • @vtvvnha2230
    @vtvvnha2230 3 ปีที่แล้ว

    super cool video

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      thank you so much.

  • @LuisSergioCurayBenites
    @LuisSergioCurayBenites 3 ปีที่แล้ว

    Thanks a lot!

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      you are always welcome.. :)

  • @abhim893
    @abhim893 3 ปีที่แล้ว

    Redis cluster set up is different.

  • @abhinavporwal4766
    @abhinavporwal4766 3 ปีที่แล้ว

    Have you tried using third party solutions for redis high availability? I am experimenting with netflix/dynomite

    • @mroyon
      @mroyon 3 ปีที่แล้ว

      no dear, I haven't tried that. let me know your experiences. tc

  • @waqasshaikh8722
    @waqasshaikh8722 4 ปีที่แล้ว

    When the master node is down, It will make the other node as master but the previous master node which is now serve as slave node is showing the master_link_status:down. Also, It is not synchronized the data from the new master node. Could you please share any solution for this. Thanks

    • @mroyon
      @mroyon 4 ปีที่แล้ว

      Ok.. ill try.. first is the replication config has been done perfectly.. forget about the master slave at the beginning.. make sure if you have three redis.. are the configured and doing replication? If no make the changes in the config to do so.. this is your first objective.. if u have configured properly.. then this would take care of master slave data sync.

    • @mroyon
      @mroyon 4 ปีที่แล้ว

      If possible can u share the configs so i can test at my lab to help you more precisely..

    • @waqasshaikh8722
      @waqasshaikh8722 4 ปีที่แล้ว

      @@mroyon Thanks for your reply but I have resolved this particular issue from my end. In order to resolve this I have set the BIND address 0.0.0.0 rather than private IP of all the redis-server and sentinel configs, By using your guide the replication and HA availability working fine on my production. Only this is the video/tutorial which helps me to understand the proper behaviour. Thank you so much.

    • @mroyon
      @mroyon 4 ปีที่แล้ว

      @@waqasshaikh8722 great job, you are most welcome.

  • @khalidalasi2031
    @khalidalasi2031 4 ปีที่แล้ว

    Thanks so much, very informative Mahmoud

  • @abhinavporwal4766
    @abhinavporwal4766 4 ปีที่แล้ว

    Newbie to this ...but isnt introducing single instance HA Proxy another single point of failure ?

    • @mroyon
      @mroyon 4 ปีที่แล้ว

      Yes, you r right. The main routing point is one, and if it is down.. then routing is down.. so to make high availability you have to place two node for ha too.. now.. lets take one more step before ha.. user to dns (even this dns can fail or down so... eve if theres 5% chance) need backup dns. From dns to ha, need 2... then.. you continue..

    • @abhinavporwal4766
      @abhinavporwal4766 4 ปีที่แล้ว

      ​@@mroyon Thanks for the comment. I am using Jedis in java which has a client support for sentinel, so I guess I don't need to use HA Proxy :D

    • @mroyon
      @mroyon 4 ปีที่แล้ว

      @@abhinavporwal4766 you are welcome. Nop, you do not need ha proxy.. you can manage without that.

  • @abhinavporwal4766
    @abhinavporwal4766 4 ปีที่แล้ว

    any popular alternative to HAProxy for this use case ?

    • @mroyon
      @mroyon 4 ปีที่แล้ว

      software based: NGINX, ENVOY stackshare.io/haproxy/alternatives

  • @mikemcshaffry976
    @mikemcshaffry976 4 ปีที่แล้ว

    This was great to watch - and now I want everyone's tech stack tutorials to be like yours. Fast, no humans talking, just upbeat music and solutions. Nice work!

    • @mroyon
      @mroyon 4 ปีที่แล้ว

      Thank you. I really appreciate your words.

  • @rezanajafi2140
    @rezanajafi2140 4 ปีที่แล้ว

    Hi, Can I use one network adapter for NLB?

    • @mroyon
      @mroyon 4 ปีที่แล้ว

      Yes you can.. Just distribute the bandwidth else request might clog the nic.

    • @rezanajafi2140
      @rezanajafi2140 4 ปีที่แล้ว

      @@mroyon thank you

    • @mroyon
      @mroyon 4 ปีที่แล้ว

      @@rezanajafi2140 you are most welcome.

  • @moonwatchme
    @moonwatchme 5 ปีที่แล้ว

    Tukhor... Excellently described

  • @smhaider1333
    @smhaider1333 5 ปีที่แล้ว

    Hi @Mahmudur Rahman , Thanks for the video guidance , however I have a scenario : My application receives web hooks from a different source frequently which are relatively fast and events received from those webhooks are transported to clientside using signal R . Now currently we have a single server where this cycle is being executed now we are planning to achieve distributed execution of our current scenario and for that we are bit confused about caching the events as events must be in a particular order. My question is : if IIS-A gets an event and stored in cache of webfarm and suddenly goes down after it and load balancing will route the next events to IIS-B , would the IIS-B resume event execution with the already stored events in webfarm cache ?

    • @mroyon
      @mroyon 5 ปีที่แล้ว

      Just few things to ask, is it necessary to use cache of webfarm for your scenario? What kind of data and for how long you want to put it in the cache? Is it just you put the event in the cache and after using that data you remove from the cache. What are you planning to use for cache storage? If you have load balancing for IIS-A and IIS-B, and from the question, Im guessing its a fail over scenario. If the webfarm cache is using shared storage and has been configured in such manner to serve independently, mean to say not depending on the IIS, then yes IIS-B will take over from where IIS-A left off. Again it depends on what and how you have configured. My way of thinking would suggest that, make the cache server completely independent from the Web Servers. Weather IIS-A or II-B fails.. it does not affect the cache server. even the scenario would support you to gain high salability. If one cache server is not enough later you can add more node to it.

  • @ExploreUnseenUSA
    @ExploreUnseenUSA 6 ปีที่แล้ว

    Keep going bro. Waiting for more.

  • @ExploreUnseenUSA
    @ExploreUnseenUSA 6 ปีที่แล้ว

    Helpful tutorial. Thanks. Please update your voice recording.

    • @mroyon
      @mroyon 6 ปีที่แล้ว

      :) thanks for the comment. I will try my best.