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 Instanceand rungit clone https://github.com/heyMP/news-api-workshop && cd news-api-workshopin the terminal.Then, you run
cp dot.env.example dot.envin order to get a new copy of environment settings.
This creates a file
dot.env. Then you clickEditorand find thedot.envfile. 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.envand SAVE.
- Now you click
PORTand enter4000and 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 click4000to see the application.
Here is the link I followed.






Top comments (0)