/Flask-Api

Simple Python Flask Web App That Can Be Used To Create RestFul-Api Deployed On Caprover Or Similar Paas.

Primary LanguagePython

Flask-Api

A flask web that can be used as a starter for creating Restful-Api

N|Solid

Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries.

  • ✨Magic ✨

Features

  • Say Hello
  • Add two numbers
  • Subtract two numbers
  • Multiplication of two numbers (can easily be scaled)
  • Give a random image Like Lorem Picsum

Installation

Deploy using Caprover

Caprover is a tool that turns your personal VPS into a Platform as a Service comparable to dokku or Heroku.

  1. Get started with Caprover on your VPS and your CLI

  2. Create a new app named flask (or anything else you like) in the Caprover interface

  3. Inside the HTTP Settings section of the new app enable HTTPS and select Force HTTPS by redirecting all HTTP traffic to HTTPS

  4. On your local machine, clone this repository and cd into it git clone https://github.com/prakasharyaman/Flask-Api.git && cd flask

  5. Run caprover deploy and select your server and the app you just created

License

MIT

Free Software, Oh Yeah!