Git Product home page Git Product logo

flask-restful-boilerplate's Introduction

Flask RESTful API Boilerplate

This is a boilerplate for a RESTful API implemented in Flask. This boilerplate use SQLAlchemy for ORM handler, and Marshmallow for SQLAlchemy object serializing.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

For developer server, just run flask run inside of the project folder. Modify .flaskenv to change respective environment vars.

Installing

All that you need for developing and deployment are in requirements.txt file.

python -m venv VENV_NAME
cd VENV_NAME
source bin/activate
mkdir src
cd src
git clone https://github.com/sugud0r/flask-restful-boilerplate.git
cd flask-restful-boilerplate 
pip install -r requirements.txt

Running the tests

🚧 Comming soon. 🚧

Deployment

For deployment, this project use Gunicorn ‼️REMEMBER TO CHANGE ENVIRONMENTS VARS WHEN DEPLOY A FLASK APP‼️:

gunicorn -w WORKERS -b IP_ADDR:PORT TOP_FOLDER.app:app

NOTE: You need to change the dir to the outside of the TOP_FOLDER that contain the instance of the Flask object for correct execution of the Gunicorn command. This is due that the project is organized like a package and not like a module, so you need treat it like importing a module and not executing them directly or you will get import errors.

Built With

Contributing

PR's are welcome.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

flask-restful-boilerplate's People

Contributors

moige01 avatar

Stargazers

Opether_Maro avatar Nicolas Ortiz avatar Jason Tan avatar Tim Herman avatar Asrul sani Ariesandy avatar  avatar

Watchers

James Cloos avatar  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.