Skip to content

aniketwdubey/FastAPI-Firestore-User-Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Firestore User Management

This project is a FastAPI-based application designed to manage users across multiple projects. It provides a unified API for creating, retrieving, updating, and deleting user information, with data stored in Google Cloud Firestore. Additionally, the application includes functionality to send email invitations with links to API documentation.

Features

  • User Management: Create, retrieve, update, and delete users.
  • Project Association: Users are associated with specific projects via a project_id.
  • Email Invitations: Send emails with links to Swagger UI and ReDoc API documentation.
  • Google Cloud Firestore: Utilizes Firestore for data storage.

Installation

  1. Clone the Repository:

    git clone https://github.com/aniketwdubey/FastAPI-Firestore-User-Management.git
    cd FastAPI-Firestore-User-Management
  2. Set Up Virtual Environment:

    python3 -m venv .venv
    source .venv/bin/activate
  3. Install Dependencies:

    pip install -r requirements.txt
  4. Environment Variables: Create a .env file in the root directory and add the following variables:

Running the Application

  1. Start the FastAPI Server:

    uvicorn app.main:app --reload
  2. Access API Documentation:

API Endpoints

  • Create User: POST /add_users
  • Get Users: GET /get_users
  • Update User: PATCH /update_users/{user_id}
  • Delete User: DELETE /delete_users/{user_id}
  • Send Invitation: POST /send_invite

Deployment

The application can be deployed on AWS EC2 or any other cloud service. Ensure that the necessary ports are open and the environment variables are set correctly.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published