Userverse uses SQLAlchemy to communicate with the database and Alembic to manage schema migrations. PostgreSQL is the recommended database for production deployments.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SoftwareVerse/userverse/llms.txt
Use this file to discover all available pages before exploring further.
Configuration
Add adatabase block to your JSON config file. The TYPE, HOST, PORT, USERNAME, PASSWORD, and NAME fields are all required when using PostgreSQL.
config.json
| Field | Type | Description |
|---|---|---|
TYPE | string | Database engine. Use postgresql for production. |
HOST | string | Hostname or IP address of the database server. |
PORT | number | Port the database listens on. Default PostgreSQL port is 5432. |
USERNAME | string | Database user with read/write access to the target database. |
PASSWORD | string | Password for the database user. |
NAME | string | Name of the database to connect to. |
If the
database block is missing or incomplete, Userverse falls back to a local SQLite file. SQLite is only suitable for development and testing.Initial setup
Create the database and user
Connect to your PostgreSQL instance and create a dedicated database and user for Userverse:
Update your config file
Add the
database block shown above to your JSON config file with the credentials you just created. Set JSON_CONFIG_PATH to point to that file before starting the application:Related pages
Docker deployment
Build and run Userverse as a Docker container.
Observability
Prometheus metrics, tracing, and request logging.