Giter Club home page Giter Club logo

flask-be's Introduction

Awesome-ERP Backend(Click Here)

Infrastructure

deployed at: https://awesome-erp-backend.herokuapp.com/

Usecase Resource
Backend Flask
Database Firebase
Lint Zulint
Deployment Heroku

Project Structure

║
╠══ aerp [The Main Project Directory]
║   ╠══ database [For all Database Utilities and Interactions]
║   ║   ╠══ models
║   ║   ║   ╠══ BaseModel.py [Prototype of a Model]
║   ║   ║   ╠══ Manager.py [Manager Level Functionalities]
║   ║   ║   ╚══ User.py [User Level Functionalities]
║   ║   ║
║   ║   ╠══ utils
║   ║   ║   ╠══ detailsExtraction.py [Functions to Filter Specific data from Piles of Useless Data]
║   ║   ║   ╚══ userDataValidity.py [Functions to Check Validity of Different Inputs to database]
║   ║   ║
║   ║   ╚══ __init__.py [Initialize the database]
║   ║
║   ╠══ modules [For Blueprints of Routes]
║   ║   ╠══ auth.py [Routes delivering Authentication Utilities]
║   ║   ╠══ employee.py [Routes delivering Employee Level Utilities]
║   ║   ╚══ manager.py [Routes delivering Manager Level Utilities]
║   ║
║   ╠══ utils [General Purpose Utils]
║   ║   ╠══ authorization.py [Functions Handling Auth Tokens]
║   ║   ╚══ responses.py [Predefined Response Types]
║   ║
║   ╚══ __init__.py [Initialize the App]
║
╠══ tools [The Utilities related to Deployment and Tests]
║   ╠══ custom_check.py [Defined Lint Rules]
║   ╠══ lint [The Main Lint Checker File]
║   ╠══ run-mypy [mypy rules file]
║   ╚══ set-env [Setup File for the Repository]
║
╠══ Config [The Configuration Files]
║   ╚══firebase_server.json [Optional can be passed with Environment Variables]
║
╠══ main.py [Starts Server]
╚══ requirements.txt

Deployment

  • sudo apt update && sudo apt upgrade -y
  • Clone the repository git clone https://github.com/awesome-erp/flask-be.git
  • Install Dependencies pip install -r requirements.txt
  • Run Server from app in main.py Eg python main.py
  • Add the Following Environment variables:
    AERP_FIREBASE_CONFIG = "{
        "type": "dummy",
        "project_id": "dummy",
        "private_key_id": "dummy",
        "private_key": "dummy",
        "client_email": "dummy",
        "client_id": "dummy",
        "auth_uri": "dummy",
        "token_uri": "dummy",
        "auth_provider_x509_cert_url": "dummy",
        "client_x509_cert_url": "dummy"
    }"
    
    ADMIN_EMAIL = "[email protected]"
    

Development

  • Fork the Repository
  • Clone the Fork git clone https://github.com/Github-User-Name/flask-be.git
  • Set upstream git remote add upstream https://github.com/awesome-erp/flask-be.git
  • Setup Environment ./tools/set-env
  • Activate virtualenv
    • Linux/OS X: Source venv-awesome-erp/bin/activate
    • Windows WSL: Source venv-awesome-erp/Scripts/activate
  • Run Server python3 main.py
    Good to Go:------------>
  • Make sure to run ./tools/lint and get the tests passed before making commits
  • Contact for firebase_server.json at [email protected]

For More Docs:

flask-be's People

Contributors

loopthrough-i-j avatar abhirup-99 avatar

Watchers

James Cloos avatar  avatar

flask-be's Issues

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.