how to dockerize asp.net core application

ASP .NET Core To dockerize your existing ASP.NET Core application, you need to install docker first. This article will explain on how to leverage docker-compose.  To do  development inside a docker container, you need to create a docker image. Let’s open a terminal and create a directory to put our project files, call it aspnetdocker. ThenContinue reading “how to dockerize asp.net core application”

How to draw a marker on OpenStreetMap

To Use OpenStreetMap and draw marker we can use a javascript library, there’s a lot out there but for this example well use leafletjs.com. It’s open source, mobile friendly and lightweight and has a complete features most developers need. Leafletjs Now head over to the website and follow the quick start tutorial, that should beContinue reading “How to draw a marker on OpenStreetMap”

Angular 2 application with asp.net core API – Part 2

The angular template from dotnet cli is using the angular v4.4.6 LTS version. So we cannot use the latest angular v.5 APIs. After creating the angular components in earlier post now we need to write each component, if you use VSCode or Visual Studio this will be easy because the editor will provide intellisense forContinue reading “Angular 2 application with asp.net core API – Part 2”

Angular 2 application with asp.net core API

To develop web application with Angular 2 and ASP .NET Core API we can use a builtin template that’s provide from the dotnet CLI (command line interface) by typing dotnet new angular but before you do that you need to make a new folder where you’ll put all your project files. Don’t forget to runContinue reading “Angular 2 application with asp.net core API”

asp.net core MVC login menggunakan custom database. Part-2

HttpPost, HttpGet dan Authorize attributes. Melanjutkan artikel part-1. Untuk meng-handle autentikasi dan input dari login form yang dikirim browser dengan metod POST, harus menggunakan HttpPost attribute pada method/action yang ada di SecurityController. Untuk itu tambahkan method baru yaitu Login dengan parameter type LoginViewModel. Saya akan menjelaskan gambar diatas, attribute yang dipakai adalah [HttpPost], [AllowAnonymous] danContinue reading “asp.net core MVC login menggunakan custom database. Part-2”

Belajar .NET Core MVC di Linux.

Install .net core sdk dan cli. belajar .NET Core MVC, pertama lakukan instalasi .NET Core SDK dengan tutorial ini. tergantung operating system yang dipakai, .net core adalah open source .net yang bisa berjalan di windows,linux dan mac os. Karena cross platform maka .net core menjadi salah satu platform yang terkenal beberapa tahun terakhir ini, meskipunContinue reading “Belajar .NET Core MVC di Linux.”

Memulai Spring Framework – part 2.

Setelah Eclipse terbuka, pilih Window→ Perspective→ Open perspective → Spring. Seperti yang saya jelaskan di artikel part 1, spring template menginstall perspective baru di eclipse (lihat gambar di bawah).   Pilih spring untuk membuka perspective spring framework dan membuat project baru dengan template yang tersedia. Buka menu File→ New Project → Spring Starter Project, akan munculContinue reading “Memulai Spring Framework – part 2.”

Memulai Spring Framework – part 3.

RequestMapping beberapa anotasi yang digunakan dalam artikel sebelumnya adalah @RequestMapping, @RequestParam dan @RestController, dalam tulisan saya bahas satu persatu arti dan kegunaan anotasi tersebut. Tambahkan controller ke dalam project yang baru saja dibuat. Buatlah class baru dengan nama HelloWorldService.java dan taruh di dalam package Controllers. Spring framework menggunakan annotations sebagai internal routing dan mapping requestContinue reading “Memulai Spring Framework – part 3.”