- What is a Microservice
- How do we make one?
- How do we make them work together?
Docker containers = good for almost all project sizes Microservices = good for big companies with a lot of code and people Sweetspot = Monolith app and databases in containers
- Node & Npm
- Text Editor
- Docker
Do the following instructions:
- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
- sudo apt install nodejs
- Verify the installation:
node --version
&&npm --version
- Run the following instructions
- sudo apt-get update
- sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get install docker-ce
- sudo docker run hello-world
- sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- To verify the installation:
docker-compose --version