Git Product home page Git Product logo

card-game-fastapi's Introduction

Game-Card - Full Stack FastAPI and Vue.js - MongoDB Deploy Heroku

Host: https://game-card-watcharapon.herokuapp.com


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

Interactive API documentation Alt text

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

Create and activate a virtual environment

Config Vars

  • MONGODB_URI
  • GOOGLE_CREDENTIALS
  • GOOGLE_APPLICATION_CREDENTIALS

add buildpack

$ python3 -m venv venv && source venv/bin/activate

Project Setup

pip install -r requirements.txt

Web Server

(venv)$ uvicorn main:app --reload --workers 2 --host 0.0.0.0 --port 8080

Run Serve

Python app.py

Setup MongoDB

- brew tap mongodb/brew
- brew install [email protected]
- brew install --cask robo-3t

Run Database

sudo mongod --dbpath /usr/local/var/mongodb

Deploy Heroku

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

card-game-fastapi's People

Contributors

watcharap0n avatar

Stargazers

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