Nest.js migrations in TypeORM

I see that from time to time developers who are new to the NestJS and are using TypeORM are having a problems with creating a database migrations. Let’s clear one thing right away. The TypeORM command line tool currently is not compatible with a NestJS and you can’t…

TypeORM query nested relationship

Sometimes you have a data model where object has a relationship few levels deep. For example: Person->job->jobType It is a style preference, but I like to use TypeORM as active record. So all my entities ussualy extends BaseEntity @Entity('Person') export class Person extends BaseEntity { // Entity…

Tip on Swift & Codable

When you're working with swift and consuming web api thanks to Codable you can now automatically map web  JSON snakecase keys  to swifts camelcase just by using : var decoder = JSONDecoder() decoder.keyDecodingStrategy = .convertFromSnakeCaseand it will turn mobile_development to mobileDevelopment Although its nice and cool if you consume your own…

It's been a while. #WWDC18 #Vapor3 #kubernetes

I know that I didn't post anything in a while, but it was a lot going on in the mean time. WWDC18 Apple's world wide developers conference where apple announced iOS 12 and macOS Mojave. Nothing ground breaking, but it seems that they focused more on fixing issues with iOS…

Install Magento 2 with Nginx on Laravel Forge

Here's to do it. Create site at Laravel Forge control panel set web directory to /pub ssh into your server get Magento via composer composer create-project --repository-url=https://repo.magento.com/magento/project-community-edition . setup proper file permissions find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod…

About me

My name is Karolis Ščerbiakas. I'm web developer from Lithuania. My stack is Laravel, iOS, Docker, NestJS. I like to try new things, so I decided give a shot to my inner blogger. Not sure if there is one. I blog regulary. Once a year or so. Tips/Recommends DigitalOcean…