Building Microservices

Those are my notes taken while reading "Building Microservice" By sam Newaman, the MUST HAVE book for microservice. What Are Microservices ? Microservices are small, autonomous services that work together,…

Continue Reading Building Microservices

DOCKERFILE

More infos about dockerfile: https://github.com/wsargent/docker-cheat-sheet#dockerfile https://docs.docker.com/engine/reference/builder/#environment-replacement A dockerfile is a file that contains instructions to build our container, you write the dockerfile, then run docker build and docker will create…

Continue Reading DOCKERFILE

Docker-compose

Those are the notes coming from this video : https://youtu.be/DX1T-PKHKhg YAML Tutorial : http://www.simonepanebianco.fr/yaml/ File YAML Version Matrix : https://docs.docker.com/compose/compose-file/compose-versioning/ As you know Docker is a tool which is used…

Continue Reading Docker-compose

BASH

https://www.learnshell.org/en/Hello,_World! Basic arithmetic Operations Simple arithmetics on variables can be done using the arithmetic expression: $((expression)) A=3 B=$((100 * $A + 5)) # 305 #you just can't do like this:…

Continue Reading BASH

GIT BEST PRACTICE

Don't work on master only branches It is better to use Branches for everything when you want to add something: use a branch, when you want to resolve a bug:…

Continue Reading GIT BEST PRACTICE

Docker

What is Docker? What problems it solves, and why you should learn it right now! Docker is very useful for a lot of people, not only dev, even if you…

Continue Reading Docker

CLASSES IN PHP

PHP now supports also classes(from version 5 on), this is very good for programming techniques. DEFINING A CLASS To define a class PHP use the "class" keyword, followed by the…

Continue Reading CLASSES IN PHP

JSON WEB TOKEN

JSON WEB TOKEN The JSON Web Token is a great and useful tool to use in an API environment! A JWT is like a bracelet that you wear after paying…

Continue Reading JSON WEB TOKEN

JEST

Fast code: npm i jest --save-dev npm i @types/jest //Intellisense npm run test test('test of test :) ',()=>{}); describe("First", () => { it("should return Simone", () => {});}); //it() equal…

Continue Reading JEST

JAVASCRIPT Async and Await

ASYNC and AWAIT "Async and await" helps you write asynchronous code like synchronous code :) every time you have a function that returns a Promis you can "await" that result let result…

Continue Reading JAVASCRIPT Async and Await