able to….. • Write a simple api route for sending SMS using Flask. • Use the requests to fetch external APIs. • Build a Docker image for your application.
https://getpostman.com/apps • Install Docker https://docs.docker.com/install/ • Install httpie https://httpie.org/#installation for those who prefer cli application instead of Postman
ping(): return jsonify( { 'status': 200, 'message': 'saccess', 'payload': 'pong' } ) if __name__ == '__main__': app.run(debug=True, host='0.0.0.0') Then create app.py where you add the following code touch app.py or manually
with docker Yay! Your app is now running on port 5000! Now, if go to localhost:5000… docker build -t pindo-flask:latest . docker run -d -p 5000:5000 pindo-flask