Webstacka's Posts
Nairaland Forum › Webstacka's Profile › Webstacka's Posts
1 2 (of 2 pages)
I promise to abide by your terms. I find it hard staying at aba south LGA with this light issue. Gosh! |
I seriously need help with any IT Firm in Aba or PH. I need a place where I can charge my laptop and continue my programming. In return, i'll help in mentoring your students in web development (if there is) or help in any way I can. Just like internship. I don't want this passion to die because of PHCN. Please help. |
Please any programmer residing at Aba? Lets hook up and share ideas. |
raker300:Please my brother leave them alone. Let us face our issue and how to seccede from this nepotic contraption rather than shouting afonja! Afonjaa!! Biko nwannem. |
He did not attempt to bribe you...just that business no work btw una... |
nwaimostate5:guy there are opportunities for you. I wont say more but just know that there are many opportunities...... |
I was too busy....but because there are people following this thread, I pledge to complete this tutorial....though it may take time. |
I will continue soon... |
if it doesn't work you can initiate the network pipeline in your system (for Windows) by opening Windows command prompt (cmd) as an Administrator and type in: netsh http add urlacl url=http://+:8081/ user=Everyone Sure it will work now...... |
Now let's begin: Nuget install Nancy Nuget install Nancy.Hosting.Self; Fire up SharpDevelop (or Visual Studio/Xamarin Studio) and start a console program. A project will be created for you Containing several files. But the files we are concerned about is the Program.cs under your Projects Window and type in the following: using System; using Nancy; using Nancy.Hosting.Self; public class Program { public static void Main(string[] args) { NancyHost host = new NancyHost(new Uri("http://127.0.0.1:8081/")); host.Start(); Console.ReadKey(true); host.Stop(); } } Now create another C# class by right-clicking on your project and select new item, and select new C# class, name it IndexModule.cs, and type this: using System; using Nancy; public class IndexModule : NancyModule { public IndexModule() { Get[@"/"] = parameters =>{ const string name = "<h1>Hello World!</h1>"; return name; }; } } Make sure you add Nancy.dll and Nancy.Hosting.Self.dll reference assemblies to your project. build it and run it you would see this:
|
First we will start with the Starting Up phase.... Introduction Now, all our tutorials will be based on an IDE and a web server to run our files. We will begin with the first tutorial; testing our our application with a web server. Our first tutorial will be a Hello World! tutorial... If you are the inpatient type, you can quickly start off by checking >>> http://microwebstack..com.ng/2017/05/introduction-to-nancy-fx-web.html |
Hello Nairalanders, I am going to start a web programming tutorial with C#.NET programming and Nancy FX web framework. This practical tutorial is part of a series of tutorials I am developing at Udemy and also part of the things you will see in a in a book i'm writing called, "Web Development with NancyFX for the beginner". Why do I Need this tutorial? Okay, I'll explain why, first I assume most of the guys who are reading this tutorial are people who want to learn web design and programming skills. It is based on C#.NET Programming! Now, someone of you must have been learning python, php, and the rest, and might be wondering the relevance of this tutorial to you. Please, just stick around and grab one or two things in it. I care less which language you love, and which you've ditched; horses for courses, but If you want to move into the web design, UI/UX world, as well as, Javascript, JQuery, and AngularJS worlds, then you really need this tutorial for one or two things. Who are you? Well, I am a web development techie and a prospective Author. I have worked as Graphics Designer, Web Developer, and a sales boy. But not in that order. Presently, I work as a Computer Instructor (Web Development). I blog at http://www.microwebstack..com, and I'm about to launch my virtual company (www.facebook.com/GeetStack/) ** A bit of Marketing ** /* * If you reside in Aba, and you want to learn web development with me. Contact me on: * * 08179370258 * * Thanks. * */ What will I learn? As a part of the course outline, you will learn the following: > Introduction - Starting up. > Web Deisgn Core (HTML5 and CSS3) > JavaScript Core and JQuery. > Introduction to C#.NET Programming - covering methods, control statements, and elementary data types. > Programming with Nancy FX Web Framework > Database Programming in Nancy FX. > Others like Authentication and Authorization, Sessions, and integration with AngularJS/ReactJS (Available in the book) What? Is that not C#.NET? Anything C#.NET is not free.... I know....but I promise that we will not anything anything trial version. We will only use opensource tools. And let say this; NancyFX works cross-platform. It works on Windows with .NET 4 and above, and Linux or Mac OS X with Mono. The tools we will use are: 1) .NET/Mono 2) An opensource IDE (SharpDevelop or Xamarin Studio) - (www.icsharpcode.net or www.monodevelop.com) 3) PostgreSQL - opensource Database engine. 4) Nuget - opensource package manager for .NET applications (www.nuget.org) 5) Nginx Web Server - FastCGI support (www.nginx.org/en/download.html) 6) Fos - use Nuget (download it by issuing Nuget install Fos 7) Nancy FX - using Nuget (download it by issuing Nuget install Nancy) Web browser - Mozilla Firefox or Google ChromeAny other tool we need will be added as we continue with the tutorial... This is the cover of the book I am writing, I hope to complete it early:
|
1 2 (of 2 pages)
Web browser - Mozilla Firefox or Google Chrome