Skip to content

paopaojr/firebase-function-python-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firebase-function-python-skeleton

Skeleton project of firebase function with python

What included

  • MyPy for python type checker
  • Simple HTTP server with swagger for API documentation
  • Various helpers scripts

Requirements

Installing

If you don't have setuptools installed

pip3 install setuptools

Open scripts/deploy-prod and change {{YOUR PROJECT NAME}} place holder to your project name.

Then

python3 setup.py install

Developing

At root folder, run

start-dev

Then go to your favourite and navigate to http://127.0.0.1:5000

port might be changed, please check in flask output

also check this out https://cloud.google.com/functions/docs/concepts/python-runtime

Testing

run-test

Deploying

Run command below, you might need to do login to gcloud first with account that has access to your project.

deploy-prod

About

Skeleton project of firebase function with python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages