GithubHelp home page GithubHelp logo

mansotra99 / file-upload Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 29 KB

file-upload apis via presigned_url in fast api

Dockerfile 1.23% Python 97.64% Shell 1.14%
fast-api python3 backend-api backend-service cloud-storage gcp mysql presignedurl

file-upload's Introduction

Project

Upload to cloud Storage (GCP in mycase) Using presigned Url

Technology:

Language : Python

Framework :  FastApi

Database : Mysql

Cloud Storage : GCP

Fast-api-Boilerplate

https://github.com/mansotra99/Fast-api-Boilerplate

FastAPI framework, high performance, easy to learn, fast to code, ready for production

ENVIRONMENT

For each Type of environment Create a respective file and pass those variables in start.sh file

Key : ENVIRONMENT

Value : [PRODUCTION,STAGING,DEVELOPMENT] (Any One)

File : [.env.production, .env.staging, .env.development] (Respective to Value)

Database Connection

Add db_host, db_password, db_user, db_name , db_port in env file.

Although using SQLAlchemy but that is just to create connection, Can implement models with respect to your needs.

TO RUN PROJECT

To run just use command "bash start.sh" on linux need to configure for other OS.

Created Reponse, Logging Common Structure Added request_id(Can also be passed from Nginx Server) which can be helpful for debugging

SWAGGER DOCS

on web browser run localhost:[port]/docs

Example: localhost:8000/docs

Project Docs

https://docs.google.com/document/d/1fe5VOP0DrrzZzt4_PuuMBBOxWoj75SzGSZxJXrhw7B4/edit?usp=sharing

CONTRIBUTION

Still Learning,

So feel free, Anything You wanna contirubute.

file-upload's People

Contributors

mansotra99 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

mansotra987

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.