Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Celaya55/app-cr/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, ensure you have:- Node.js (v14 or higher)
- Docker and Docker Compose
- Git
- A text editor or IDE
- curl or Postman for testing
Setup Steps
Start PostgreSQL with Docker
Launch the PostgreSQL database using Docker Compose:This will start a PostgreSQL container with the following configuration:
- User:
user_admin - Password:
password123 - Database:
mi_db_crud - Port:
5432
The
-d flag runs the container in detached mode (background).Configure Environment Variables
Create a Add the following environment variables:
.env file in the backend directory:Install Dependencies
Install all required npm packages:This installs:
- Express.js for the web server
- Prisma for database ORM
- bcryptjs for password hashing
- jsonwebtoken for JWT authentication
- Other essential dependencies
Initialize the Database
Generate Prisma client and run migrations:This creates the database tables based on your schema:
UsertableTasktable
Make Your First API Call
Now that your server is running, let’s create a user!Expected Response
If successful, you’ll receive a201 Created response with the user data:
Verify Your Setup
Check that everything is working:Database Connection
Verify PostgreSQL is running:You should see a container with the
postgres:15 image.Next Steps
Installation Guide
Detailed setup and configuration options
API Reference
Complete API endpoint documentation
Troubleshooting
Port 5432 already in use
Port 5432 already in use
If you have another PostgreSQL instance running, either stop it or change the port in Don’t forget to update your
docker-compose.yml:DATABASE_URL accordingly.Prisma migration errors
Prisma migration errors
If migrations fail, reset the database:
Cannot connect to database
Cannot connect to database
Ensure Docker is running and the PostgreSQL container is up: