Skip to content

ForceFinity/UsersMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Use

First time setup

Install uv

First, make sure you have uv installed. If not, you can install it using pip:

pip install uv

Alternatively, you can follow instructions from the uv documentation for the latest install method.

Set up environment variables

  • Set the DATABASE_URL environment variable. This must be done through export or Docker -e flag; it cannot be used in dotfiles.
export DATABASE_URL=asyncpg://user:password@localhost:5432/dbname
  • Configure dotenv files in env/ directory:

    • api.env – this file must exist, it contains some general info about the API.
    • security.env.example – use this as a template for your actual security.env file. Copy and rename it:
cp env/security.env.example env/security.env

Fill in the required secrets in env/security.env as needed.

Install dependencies

Once uv is installed and your env/ directory is populated:

uv add -r requirements.txt

Launching the app

Start the FastAPI app using uv:

uv run uvicorn main:application

This will boot up your FastAPI server with the user microservice, which includes both auth and general user CRUD functionality.

If using Docker, remember to pass the DATABASE_URL explicitly:

docker run -e DATABASE_URL=asyncpg://user:password@host:port/dbname your_image_name

Ensure your machine has Python 3.13 installed for compatibility with modern uv and FastAPI dependencies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published