Code Monkey home page Code Monkey logo

jflask's Introduction

JFlask

logo

❄️ JFlask: Template for Flask RESTful API and management

Server

RESTful API server with a systematic structure separated by resources for rapid development

  • flask-common: common settings
  • flask-cors: CORS 설정
  • flask-jwt-extended: JWT 관리(Bearer)
  • flask-restplus: REST API 구축과 Swagger 문서화
  • flask-pymongo: MongoDB 데이터베이스 연동
  • validators: 데이터 검증
  • gevent: react asynchronous

Structure

namespaces
├── test
│   ├── __init__.py
│   ├── models.py
│   └── resources
│       └── test.py
└── __init__.py
  • server.namespaces 아래에는 API의 각 Namespace(네임스페이스)에 대한 모듈이 위치합니다.
  • 하위 네임스페이스에서 리소스를 추가하기 위해서 extend_namespaceNamespace를 확장한 뒤 add_resources 메소드를 사용합니다.
    • resourcesResource(리소스)에 대한 각각의 모듈을 가집니다.
    • models는 해당 네임스페이스의 리소스에서 사용하는 Namespace.model들을 가집니다.
  • extend_namespace 확장에 존재하는 validate 메소드는 validator에 따라 ns.payload의 필드를 검증합니다(실패 시 400).

Documentation

server

server.create_app()

Create Flask app and returns _app

server.mongo

Initialized PyMongo(from flask-pymongo)

server.common

Initialized Common(from flask-common) with app

server.namespaces

server.namespaces.extend_namespace

server.namespaces.hash_password

server.namespaces.api

App for management

Admin app with Vue.js

jflask's People

Contributors

dependabot[bot] avatar imgbot[bot] avatar junhoyeo avatar

Stargazers

 avatar  avatar

Watchers

 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.