GithubHelp home page GithubHelp logo

edgaroc30 / flask-api-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 26 KB

A simple Flask API Template running in Docker on top of Vagrant with a MariaDB

Dockerfile 0.83% Python 5.07% Shell 5.46% API Blueprint 1.07% HTML 87.58%

flask-api-template's Introduction

Flask API template

A simple template using Vagrant and Docker for a Flask API

Make sure to change the name and Paths in the bash_profile if there are changes in the name of the app or the available ports.The whole API should remain in the app folder

Rebuild the docker api container

The Flask API can be rebuild by using

vagrant ssh -c api-rebuild

Rebuild the api documentation using aglio

The aglio documentation works using node and the set up of the whole vagrant machine might take a while since it requires node. To regenerate the documentation:

vagrant ssh -c apidocs-rebuild

Get the IP address of the machine

To easily get the IP address that the machine was assigned the following command will work

vagrant ssh -c get-ip

Using Conda

If you are using Conda locally it will help to define the library dependencies and find any possible issues with the libraries

conda create -n flask-api python=3.6 pip
conda activate flask-api
pip install -r app/requirements.txt

External references

Vagrant docs Docker docs Aglio docs Flask docs

flask-api-template's People

Contributors

edgaroc30 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.