NikitaL2022
Posted on March 1, 2022
Why is Docker so Powerful?
- Docker is essential for developers in building, deploying, running, updating, and stopping containers. A container is an executable package of software. Docker makes it easier and safer to create containers than without it.
How to Start
First, you will need to create an account Here.
Then you go to the terminal, click
New Instance
and rungit clone https://github.com/heyMP/news-api-workshop && cd news-api-workshop
in the terminal.Then, you run
cp dot.env.example dot.env
in order to get a new copy of environment settings.
This creates a file
dot.env
. Then you clickEditor
and find thedot.env
file. You will need to get an API key and public url.Go to API KEY, create an account, and it will generate your personal key.
- You take your personal API key and replace it in the
dot.env
and SAVE.
- Now you click
PORT
and enter4000
and click ok.
- It should show page isn't working.
You can take the url and and put it here
NEWS_ENDPOINT=
indot.env
.Finally, you can run
docker-compose up
. Ports 80 and 4000 pop up and you can click4000
to see the application.
Here is the link I followed.
Posted on March 1, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 29, 2024