Giter VIP home page Giter VIP logo

m-business's Introduction

CHATBOT_myself.pdf

M Business Fullstack FastAPI and Vue.js - MongoDB Deploy Heroku


URL : https://mango2smartmarketing.herokuapp.com


Generate a backend and frontend stack using Python, including interactive API documentation.

Interactive API documentation

page 1

Alt text

page 2

Alt text

Page Sign In

Alt text

Concept Design Patterns

(MVC) Model View Controller

Feature

- Python FastAPI backend:
    - Fast: Very high performance, on par with NodeJS and Go (thanks to Starlette and Pydantic).
    - Intuitive: Great editor support. Completion everywhere. Less time debugging.
    - Easy: Designed to be easy to use and learn. Less time reading docs.
    - Short: Minimize code duplication. Multiple features from each parameter declaration.
    - Robust: Get production-ready code. With automatic interactive documentation.
    - Standards-based: Based on (and fully compatible with) the open standards for APIs: OpenAPI and JSON Schema.
    - Many other features including automatic validation, serialization, interactive documentation, authentication with OAuth2 JWT tokens, etc.
- Firebase Authentication
- WebSocket Pusher
- Vue frontend Generated with Vue CDN and Vuetify
- Database MongoDB
- Docker Compose Local

Testing APP

Testing FastAPI (API)
Testing Database
Using by Testing Client > test_app.py (test_modules) run script

Firebase service authentication

Alt text

Config Variable In Heroku

"apiKey": os.environ['apiKey'],
"authDomain": os.environ['authDomain'],
"projectId": os.environ['projectId'],
"databaseURL": os.environ['databaseURL'],
"storageBucket": os.environ['storageBucket'],
"messagingSenderId": os.environ['messagingSenderId'],
"appId": os.environ['appId'],
"measurementId": os.environ['measurementId']

"type": os.environ['type'],
"project_id": os.environ['project_id'],
"private_key_id": os.environ['private_key_id'],
"private_key": os.environ['private_key'].replace("\\n", "\n"),
"client_email": os.environ['client_email'],
"client_id": os.environ['client_id'],
"auth_uri": os.environ['auth_uri'],
"token_uri": os.environ['token_uri'],
"auth_provider_x509_cert_url": os.environ['auth_provider_x509_cert_url'],
"client_x509_cert_url": os.environ['client_x509_cert_url']

Build && Setup Python

$ pip install virtualenv
$ virtualenv venv
$ source venv/bin/activate
$ (venv) pip install -r requirements.txt
$ brew tap mongodb/brew
$ brew install [email protected]
$ brew install --cask robo-3t
$ sudo mongod --dbpath /usr/local/var/mongodb

Deploy On Heroku

$ heroku login
$ heroku git:clone -a (repo-name)
$ cd game-card-watcharapono
$ git add .
$ git commit -am "make it better"
$ git push heroku master

m-business's People

Contributors

watcharap0n 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.