Static Class and Extends methods in C#

The static keyword is very useful in c#  when we need to use class, method or property without creating an object instance is very common using a static class as a box or container for properties helpers or methods. For example, our boss said the employee object needs to be able to show the salary…

Head start with Array, List and Diccionaries in .NET

The Array, Lists and Dictionaries are the most basic collections in .NET and everyone has his scenery to be used, I will explain a bit about each one, for the examples I created the class Team to show the examples. public class Team { public int Id { get; set; } public string Initials {…

Object Initialization and Constructor

When we have few fields in a class and want to initialize every field in a constructor it should become a little bit messy and maybe we need a few constructors. public class User { public string Name; public List<string> Roles; public User(string name) { Name = name; } public User(string name, List<string> roles) {…

Create API with AWS API Gateway and Serverless Framework

Serverless is framework is one of the most widely adopted frameworks for build serverless applications, you can build great solutions for Azure, AWS or Google Cloud, in my case, I will use AWS. To start is so easy, first, we install the serverless node package and configure it with AWS. Configure Serverless Framework with AWS…

Create your REST API with Express (3/3)

You are reading the third part of Create Rest API with Express, feel free to read Part 1 and Part 2 In this part, I will send a request to the POST method using Vue. Add form to send data. The first step is to include the CDN to index.html for a little styling. The HTML contains a…

Create your REST API with Express 1/2

You are reading the second part of Create Rest API with Express, feel free to read the Part 1 for continue, in this case, I will build a simple client with Vue for getting the list of documents from our API. Create my app with Vue. The only goal of this application is to get the answer…

Create your REST API with Express part 1

Today I wanted to create my own REST API using express, some friends told me about Express is allow create stateless APIS quick and easy and support HTTP verbs to able communicate with our resources getting the responses in JSON format. Prerequisites This is what you’re going to need in order to follow along with this example:…

How to Create Fake API REST with JSON-Server and Now

Many times we want to create an API Rest quickly and work beyond our localhost, then JSON-Server and Now come to the rescue. Now allows us to publish static portals, but also applications with Node, so we will publish our API rest using JSON-server. mkdir myfakeapp npm init -y npm install json-server –save-dev API To create the API using…