Quickstart
Get the Los Inmaduros Backend API up and running in just a few minutes using Docker. This is the fastest way to start developing with the API.Prerequisites
Before you begin, make sure you have:- Docker Desktop installed (Download here)
- Git for cloning the repository
- Clerk account for authentication (Sign up at clerk.com)
- Supabase account for image storage (Sign up at supabase.com)
Quick Start Steps
Configure environment variables
Copy the example environment file and add your credentials:Edit the
.env file and add your Clerk and Supabase credentials:The other environment variables have sensible defaults for Docker development. See the Environment Variables page for details.
Start with Docker Compose
Launch the entire stack with a single command:Or use Docker Compose directly:Docker will automatically:
- ✅ Set up a PostgreSQL database
- ✅ Run Prisma migrations
- ✅ Install all dependencies
- ✅ Start the server with hot reload
Access the API
That’s it! Your API is now running:
- Backend API: http://localhost:4000
- Interactive Swagger Docs: http://localhost:4000/api-docs
- PostgreSQL Database: localhost:5432
The Swagger documentation at
/api-docs provides an interactive interface to explore and test all API endpoints.Test the API
Verify everything is working by making a test request:Health Check
Check if the server and database are running:Get All Routes
Fetch the list of skating routes:Browse Interactive Documentation
The easiest way to explore the API is through the Swagger UI:- Open http://localhost:4000/api-docs in your browser
- Browse all available endpoints
- Try requests directly from the interface
- See request/response schemas
Useful Docker Commands
Manage your development environment with these commands:Next Steps
Now that you have the API running, you can:Explore API Endpoints
Learn about all available endpoints and their parameters
Authentication Setup
Configure Clerk authentication for protected endpoints
Environment Variables
Understand all configuration options
Manual Installation
Set up the API without Docker
Troubleshooting
Database connection failed
Database connection failed
If you see database connection errors:
- Make sure Docker containers are running:
docker ps - Check PostgreSQL container logs:
docker-compose logs db - Verify the
DATABASE_URLin your.envfile - Try rebuilding:
docker-compose down -v && docker-compose up --build
Port 4000 already in use
Port 4000 already in use
If port 4000 is already occupied:
- Change the
PORTvariable in your.envfile - Update docker-compose.yml port mapping accordingly
- Restart the containers
Clerk authentication errors
Clerk authentication errors
If you see Clerk-related errors:
- Verify your
CLERK_SECRET_KEYandCLERK_PUBLISHABLE_KEYare correct - Make sure they’re from the same Clerk application
- Check that your Clerk application is properly configured
For more detailed installation options, including manual setup without Docker, see the Installation Guide.
