Use Containers
Use Containers
Let us go with a devops-first
approach:
Our smallest experiments, no matter how trivial, will be closest to production best practices!
Note: Even without the video, you can learn all the crucial details from the steps that are documented below
Login to your cloud-box over
ssh
.Create it if you haven't done so already.
This will be a robust environment for learning.
To start with a clean environment, run:
Setup your IDE to work with the remote directory on the cloud-box.
Create New Project named
loopback-zero-to-hero
For
Deployment Path
use/root/workspace/loopback-zero-to-hero
In your IDE, create a
Dockerfile
with the following content:Create a
docker-compose.yml
file to install and run a reasonably up to date version of NodeJS:Start the service:
docker-compose up
and after it finishes running, you should see something like the following at the very end:
Last updated