A full-stack starter template for RAGE:MP using TypeScript, React, and MongoDB.
- Node.js (v18+ recommended)
- pnpm
- MongoDB (local or remote)
- RAGE:MP server (Windows or Linux version)
pnpm installInstalls both frontend and backend dependencies.
pnpm run devUsually available at http://localhost:5173.
- Download RAGE:MP server (Windows or Linux).
- Extract server files into
apps/rage/. - Ensure
.envand.env.exampleare inapps/rage/:
apps/rage/.env
apps/rage/.env.example
- Edit
.envand set your environment variables (e.g., MongoDB URI):
MONGO_URI=mongodb://localhost:27017/ragemp
- Windows:
apps/rage/ragemp-server.exe- Linux:
cd apps/rage
chmod +x ragemp-server
./ragemp-server/apps
/rage # RAGE:MP server + .env files
/ui # React frontend (TypeScript)
/packages
/shared # Shared TypeScript code
- Frontend running → interact with UI.
- RAGE:MP server running → connect with client.
- MongoDB connected → all data stored correctly.
You are now ready to start developi