Posts

Showing posts from May, 2022

hosting local domain

 C:\Windows\System32\drivers\etc\hosts open hosts file in notepad change like below # 127.0.0.1 brijesh.com ::1 brijesh.com 0.0.0.0 apps.corel.com 0.0.0.0 mc.corel.com 0.0.0.0 origin-mc.corel.com 0.0.0.0 iws.corel.com 127.0.0.1 www.mindjet.com 127.0.0.1 ipm.corel.com 127.0.0.1 www.r2rdownload.com 127.0.0.1 www.elephantafiles.com127.0.0.1 widgetcast.reallusion.com 127.0.0.1 da.reallusion.com 127.0.0.1 ctifiles2.reallusion.com 127.0.0.1 localhost 127.0.0.1 dotnetcoremvc.com ::1 localhost

Dotnet Core related commands

 $ dotnet --version  to check version of Dotnet SDK $ dotnet new --list  for available options with new $ dotnet new mvc creates an mvc app in the current folder $ dotnet new mvc -o  <projectname> creates mvc project under the projectname folder $ dotnet add package npgsql add the package npgsql is .NET package for PostgresSQL. $ dotnet run This command run the debug instance can be seen loacallly $ dotnet publish --configuration Release this command creates publishable folder in projectname\bin\Release\net6.0\publish\ just copy the contents of this folder to server root folder

Flutter API Calls

 Step 1: first add http package in pubspec.yaml file  Two Methods:  1-      Manually type or  2-      Command     $flutter pub add http ---------------------------------------------------------------------------------- Step 2: Import package into required dart file import 'package:http/http.dart' as http ;                       ----------------------------------------------------------        Step 3: create a function   API Response Two Types: 1-Map Type 2- List Type { "data":   {"id":2,             "email":"janet.weaver@reqres.in", "first_name":"Janet",           "last_name":"Weaver",           "avatar":"https://reqres.in/img/faces/2-image.jpg"           }, "support":{"url":"https://reqres.in/#support-heading",                "text":"To keep ReqRes free, contributions towards server costs are appreciated!"