Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/josethz00/flask_api_template

Basic Flask API template to setup quickly your projects, right to the code, using Flask, Flask-Mail, Threads and SQLAlchemy
https://github.com/josethz00/flask_api_template

async flask python template

Last synced: 3 days ago
JSON representation

Basic Flask API template to setup quickly your projects, right to the code, using Flask, Flask-Mail, Threads and SQLAlchemy

Awesome Lists containing this project

README

        

# Flask API template 🤯🤯🤯
This is a public repository with contents of Flask Web Development, here you will find examples applied in a Restful API, and a basic and flexible structure to start your Flask apps.


Steps to run this app 👇👇👇



1- Check if you have Python (3.2 or +) installed
-----------------------------------

  • Type in your terminal (Windows):
  • ```
    $ python
    ```

  • Type in your terminal (Unix):
  • ```
    $ python3
    ```

    If no errors were shown, it means that you already have Python installed

    2- Installing Python (skip this if you already have Python installed)
    -----------------------------------

    windows - https://www.python.org/downloads/release/python-392/

    linux - ``` $ sudo apt-get install python3.9 ```

    apple - ``` brew install python3 ```

    3- Cloning repo
    -----------------------------------

    ```
    $ git clone https://github.com/josethz00/flask_api_template
    ```

    4- Enter in folder
    -----------------------------------

    ```
    $ cd server
    ```

    5- Install the requirements
    -----------------------------------

    ```
    $ pip3 install -r requirements/requirements.txt
    ```

    6- Start Flask server
    -----------------------------------

    ```
    $ python3 run.py
    ```


    ## Check some default env variables (available on ``` config/variables.py ```)

    | Env Variable | Default Value |
    | ------------- | ------------- |
    | HOST | '0.0.0.0' |
    | PORT | '8080' |
    | DEBUG | True |