Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple FastAPI App

This is a simple FastAPI application that returns a random number and displays it on a web page.

Running Locally

  1. Install dependencies:

    pip install -r requirements.txt
  2. Run the application:

    uvicorn main:app --reload
  3. Open your browser and navigate to http://127.0.0.1:8000.

Deploying to Google Cloud Run

  1. Build the Docker image:

    docker build -t simpleapp .
  2. Push the image to Google Container Registry (GCR):

    docker push gcr.io/your-gcp-project-id/simpleapp
  3. Deploy to Cloud Run:

    gcloud run deploy --image gcr.io/your-gcp-project-id/simpleapp --platform managed

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages