A full-stack application integrating Cybrid's payment infrastructure with a React frontend and Node.js backend.
react-native-cybrid/
├── backend/ # Express.js + TypeScript backend
└── frontend/ # React + Vite frontend
- Cybrid payment integration via official SDKs
- RESTful API backend with Express
- Modern React frontend with TypeScript
- Secure authentication and authorization
- Real-time payment processing
- Node.js >= 18.0.0
- npm or yarn
- Cybrid API credentials (Client ID, Client Secret, Bank GUID)
-
Clone the repository
git clone https://github.com/spence709/react-native-cybrid.git cd react-native-cybrid
-
Set up the backend
cd backend npm install cp .env.example .env # Edit .env with your Cybrid credentials npm run dev
-
Set up the frontend
cd frontend npm install npm run dev
-
Access the application
- Frontend: http://localhost:5173
- Backend API: http://localhost:5000
Copy backend/.env.example
to backend/.env
and configure:
CYBRID_CLIENT_ID
- Your Cybrid client IDCYBRID_CLIENT_SECRET
- Your Cybrid client secretCYBRID_BANK_GUID
- Your Cybrid bank GUIDPORT
- Backend server port (default: 5000)
See backend/README.md for detailed backend setup.
- Express.js
- TypeScript
- Cybrid API SDK
- Axios
- Helmet & CORS
- React 18
- TypeScript
- Vite
- TailwindCSS
- React Router
- Zustand (state management)
- SWR (data fetching)
# Run backend in development mode
cd backend && npm run dev
# Run frontend in development mode
cd frontend && npm run dev
# Build for production
cd backend && npm run build
cd frontend && npm run build
ISC