Posts

Showing posts from August, 2017

.Net Core Web API from scratch with Visual Studio Code

Hi all, In this blog I'll explain you how to build and test .Net Core Web API. I assume you have installed Visual Studio Code and C# extension which comes to that IDE. So, Lets get started. 1. Create a folder, I'll name it as CoreWebApi. 2. Open this folder in VS Code. 3. Open its' terminal by pressing Ctrl + ~ 4. Create folder called API and go to that folder in terminal. 5. Type 'dotnet new web' and hit Enter. And you should get the following message: The template "ASP.NET Core Empty" was created successfully. This template contains technologies from parties other than Microsoft, see https://aka.ms/template-3pn for details. 6. Go to Startup.cs and add services.AddMvc(); to ConfigureServices(IServiceCollection services) method. So that method should like as bellow: public void ConfigureServices(IServiceCollection services) { services.AddMvc(); } 7. Comment app.Run section in Configure method and add app.UseMvcWithDefau

Electron: Create Cross platform desktop app from Scratch with Visual Studio Code

Image
Hi all, I assume you already know what is Electron and why we are using it. If you would like to know more on Electron please refer there official web site from here . Prerequisites   1. Visual Studio Code. 2. Node.js I assume you have completed above prerequisites. So then lets try this out with Visual Studio Code . 1. Create a folder (I named it as ElectronTestApp) 2. Open it from VS Code 3. Add a new file and name it as package.json.  4. Then copy following code to it. { "name": "your-app" , "productName": "Electron tutorial app" , "version": "0.1.0" , "main": "main.js" , "scripts": { "start": "electron ." }, "devDependencies": { "electron": "~1.6.2" , "electron-packager": "^9.0.0" } } 5. Add another new file and na