This quickstart walks you through spinning up a local Rappi2 instance using Docker Compose, initializing the database, creating the default admin user, and authenticating against the API for the first time.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JorLOrT/rappi2/llms.txt
Use this file to discover all available pages before exploring further.
Clone and configure
Clone the repository and create your Open
.env file from the provided example:.env and set the required variables:Start with Docker Compose
Build and start all three services (PostgreSQL, MongoDB, and the API):Docker Compose will wait for both databases to pass their health checks before starting the API container. Once complete, the API is available at
http://localhost:8000.Run database migrations
Apply all Alembic migrations to initialize the PostgreSQL schema:This creates every table the API depends on. Run this command again whenever you pull changes that include new migrations.
Seed the admin user
Populate the default roles (The script creates the user
Admin, Despachador, Conductor, Cliente), grant the Admin role wildcard permissions, and create the initial admin user:admin with password admin123. Change this password immediately in any environment accessible to others.Make your first request
Log in to obtain a JWT token pair, then call a protected endpoint to confirm everything is working.Step 5a — Log in:The response contains an Step 5b — Call a protected endpoint:A successful response returns your user profile, confirming the API is running and your token is valid.
access_token and a refresh_token:The interactive API explorer is available at
http://localhost:8000/docs. You can authorize there using the Authorize button and test every endpoint without writing curl commands.