Build and Deploy Flask REST API on Docker

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • practical-modern-javascript

    🏊 Dive into ES6 and the future of JavaScript

  • import flask from flask import request, jsonify app = flask.Flask(__name__) app.config["DEBUG"] = True # Create some test data for our catalog in the form of a list of dictionaries. books = [ { "id": 1, "isbn":"9781593279509", "title":"Eloquent JavaScript, Third Edition", "subtitle":"A Modern Introduction to Programming", "author":"Marijn Haverbeke", "published":"2018-12-04T00:00:00.000Z", "publisher":"No Starch Press", "pages":472, "description":"JavaScript lies at the heart of almost every modern web application, from social apps like Twitter to browser-based game frameworks like Phaser and Babylon. Though simple for beginners to pick up and play with, JavaScript is a flexible, complex language that you can use to build full-scale applications.", "website":"http://eloquentjavascript.net/" }, { "id": 2, "isbn":"9781491943533", "title":"Practical Modern JavaScript", "subtitle":"Dive into ES6 and the Future of JavaScript", "author":"Nicolás Bevacqua", "published":"2017-07-16T00:00:00.000Z", "publisher":"O'Reilly Media", "pages":334, "description":"To get the most out of modern JavaScript, you need learn the latest features of its parent specification, ECMAScript 6 (ES6). This book provides a highly practical look at ES6, without getting lost in the specification or its implementation details.", "website":"https://github.com/mjavascript/practical-modern-javascript" } ] @app.route('/', methods=['GET']) def home(): return '''VLib - Online Library A flask api implementation for book information. ''' @app.route('/api/v1/books/all', methods=['GET']) def api_all(): return jsonify(books)@app.route('/api/v1/books', methods=['GET']) def api_id(): if 'id' in request.args: id = int(request.args['id']) else: return "Error: No id field provided. Please specify an id."results = [] for book in books: if book['id'] == id: results.append(book)return jsonify(results) @app.route("/api/v1/books", methods = ['POST']) def api_insert(): book = request.get_json() books.append(book) return "Success: Book information has been added." @app.route("/api/v1/books/", methods=["DELETE"]) def api_delete(id): for book in books: if book['id'] == int(id): books.remove(book) return "Success: Book information has been deleted." if __name__ == '__main__': app.run(host="0.0.0.0", port=5000)

  • flask-api-docker

    Flask api containerization using docker

  • GitHub - codemaker2015/flask-api-docker: Flask api containerization using docker

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Experimental blog that is only available to read through a feed reader

    2 projects | news.ycombinator.com | 3 May 2024
  • Optimizing Microsoft Graph API Integration with LangChain Chatbot

    1 project | /r/LangChain | 14 Nov 2023
  • Style guide for tech writers documenting open-source software

    1 project | /r/technicalwriting | 30 Jun 2022
  • Living Off the Land Binaries

    1 project | news.ycombinator.com | 25 Sep 2023
  • Follow-ups to the “Streets” series

    2 projects | dev.to | 17 Sep 2023