This guide walks you through getting a fully working Yakult App development environment running on your local machine. By the end, you will have the MySQL database initialized, the Express backend serving the REST API on port 3000, and the Expo mobile app running on an emulator or physical device — ready to register your first user and place your first order.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/160906/Yakultt-App/llms.txt
Use this file to discover all available pages before exploring further.
Setup Steps
Prerequisites
Make sure the following tools are installed before you begin:Verify your Node version before proceeding:
- Node.js 18+ — nodejs.org
- MySQL — via XAMPP (recommended for Windows) or MySQL Workbench
- Expo CLI — install globally with:
Clone the Repository
Clone the Yakult App monorepo to your local machine:The repository contains two top-level directories:
backend/— the Express.js API serveryakult-app/— the React Native / Expo mobile application
Configure the Database
Start your MySQL server, then create the Optionally, seed the database with the provided SQL dump for sample data:
yakult_db database:Importing the SQL dump is optional. When the backend server starts for the first time,
ensureSchema() automatically creates all required tables in yakult_db. You only need the dump if you want pre-loaded sample data.Start the Backend
Install dependencies and start the Express development server:On startup you should see:The server runs on port 3000 and auto-migrates the database schema on every start. Verify it is healthy with a quick curl:Expected response:
Configure the Mobile App API URL
Open
To find your LAN IP on Windows run
yakult-app/services/db.ts and confirm (or update) the BASE URL to match your environment:| Environment | BASE URL |
|---|---|
| Android Emulator | http://10.0.2.2:3000/api |
| iOS Simulator | http://localhost:3000/api |
| Physical Device (same Wi-Fi) | http://<your-LAN-IP>:3000/api |
ipconfig; on macOS/Linux run ifconfig or ip addr.Start the Mobile App
In a new terminal, install dependencies and launch the Expo development server:Expo will display a QR code in the terminal. Scan it with the Expo Go app on a physical device, or press:
ato open on a connected Android emulatorito open on an iOS simulator (macOS only)
Create Your First User
You can register a new user either through the in-app registration screen or directly via the API.Using curl:Role assignment rules:
A successful registration returns a JWT token you can use to authenticate subsequent API requests:
| Email domain | Assigned role |
|---|---|
@upa.edu.mx | Master (full admin access) |
| Any other domain | Promotor (field sales access) |