Code Monkey home page Code Monkey logo

app1's Introduction

Streamlit Multi-Page App with Google Authentication

This application integrates two separate Streamlit apps into a single multi-page application with Google authentication.

Structure

The project is structured as follows:

  • pages/: Directory containing individual Streamlit apps as modules.
  • streamlit_app.py: The main entry point for the multi-page Streamlit app.
  • requirements.txt: The Python requirements file for the application.
  • Dockerfile: Instructions for building the Docker container for this app.
  • .dockerignore: Specifies patterns that should be ignored by Docker.
  • .env: An environment variables file template for configuration (rename to .env and fill in the values).

Setup

Local Development

  1. Install the required Python packages:

    pip install -r requirements.txt
    
  2. Run the Streamlit app locally:

    streamlit run streamlit_app.py
    

Docker Deployment

  1. Build the Docker image:

    docker build -t streamlit-multi-app .
    
  2. Run the Docker container:

    docker run -p 8501:8501 streamlit-multi-app
    

Configuration

Before running the app, ensure you have a .env file with the necessary environment variables set, including:

  • Google OAuth client ID and secret
  • Any database configuration if used by the apps
  • Any other service credentials (e.g., OpenAI API key)

Usage

Once the application is running, navigate to the provided URL (usually http://localhost:8501) and use the sidebar to switch between different Streamlit applications.

For detailed instructions on setting up Google authentication and configuring the .env file, refer to the official Streamlit and Google OAuth documentation.

Production Deployment

For production deployment, use the docker-compose.yml (to be created) with the Docker and .env configurations. Ensure that the Docker Compose file is set up with the correct domain and SSL configurations if needed.

app1's People

Contributors

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