Introduction

We will learn how to implement a RESTful API for a simple todo application using NestJS framework. But what is NestJS?

“A progressive Node.js framework for building efficient, reliable and scalable server-side applications.”

You can read more about NestJS here.

In this article, it assumes you have at least the basic understanding of TypeScript and even better with NodeJS and ExpressJS. However if you aren’t familiar with these requirements, I will list down you what I recommend you to watch to learn from:
- TypeScript by Fireship
- NodeJS by Fireship
- ExpressJS by Traversy Media

I also recommend you…


Hi. They have improved the Middleware regarding exclusion of some Controller methods by this time!

I know you are already aware but maybe for some other readers that they should know too.

For my take around DTOs, you can create a BaseFeatureDto class and have it extend to other DTOs

So for example,

// base-todo.dto.ts

export class BaseTodoDto {

title: string

}

// create-todo.dto.ts

export class CreateTodoDto extends BaseTodoDto {}

// update-todo.dto.ts

export class UpdateTodoDto extends BaseTodoDto

{

aNewField: string[]

}

If you want to exclude some properties then from the BaseTodoDto class just put the optional symbol, then I guess the boilerplate code cons is solved.


Introduction

This article assumes that you have a basic understanding and fundamentals of PHP and the Laravel framework.

Before we get into the topic we first must understand what is Repository pattern:

The Repository pattern. Repositories are classes or components that encapsulate the logic required to access data sources. They centralize common data access functionality, providing better maintainability and decoupling the infrastructure or technology used to access databases from the domain model layer.

Source: https://docs.microsoft.com/en-us/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/infrastructure-persistence-layer-design#:~:text=of%20Work%20patterns.-,The%20Repository%20pattern,from%20the%20domain%20model%20layer.

Create a fresh Laravel project

Now open up a terminal and install a fresh Laravel project,

composer create-project laravel/laravel laravel-repository-pattern

Then open this in your code editor (VS Code).

I am…


In this article, it assumes you have the basic knowledge and understanding of:

  • Vue
  • Nuxt js
  • TypeScript
  • Vue 3: Composition API

Installation

Open your terminal and run this command npx create-nuxt-app nuxt-ts-composition-api make sure to select TypeScript, and $axios during the selection process.

I’m not gonna go through the installation process but you can refer to the official documentation https://nuxtjs.org/docs/2.x/get-started/installation

Then install @nuxtjs/composition-api module

npm install @nuxtjs/composition-api --save

And add this inside your nuxt.config.js file,

{
buildModules: [
'@nuxtjs/composition-api'
]
}

That is all we need but for more details head over to the official docs https://composition-api.nuxtjs.org/getting-started/setup

Accessing the Router instance

In Nuxt without TypeScript…


Introduction

In this article I will be sharing how I implement an authentication system in Flutter, you can use any back-end framework that implements a token-based API authentication. In this tutorial I will be using Laravel Passport for handling the API authentication. So the pre-requisites for this tutorial are as follows:

Source code will be available from the repository.

If you have these pre-requisites then you wouldn’t have a hard time…


You can skip this part but this is just a quick introduction about myself since this is my first time writing a tech blog. Hello there folks, my name is Carlo Miguel Dy and I am a Fullstack Developer from the Philippines. I am still new to the software development world since I started out last year where I learned PHP and MySQL. I also build custom tailored web applications using Laravel and Vue/Nuxt as my stack. I also know a little bit of AWS regarding setting up stuff (Nginx) in the server and deployment. And about me with Flutter…

Carlo Miguel Dy

Software Engineer & Full-Stack Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store