This is a React Native mobile application that interfaces with the Yalies.io backend service. The app implements token-based authentication and secure API communication.
- React Native
- AsyncStorage for token storage
- Axios for API requests
- EAS (Expo Application Services) for builds
The app communicates with https://yalies.io/
as the base API endpoint. All API requests are authenticated using Bearer tokens when available.
- User logs in and receives a token
- Token is stored securely in AsyncStorage
- All subsequent API requests include the token in Authorization header
- Logout removes the token from storage
Create a .env
file in your project root with the following variables:
API_HOST=https://yalies.io
Create an eas.json
file in your project root:
json { "cli": { "version": ">= 0.52.0" }, "build": { "development": { "developmentClient": true, "distribution": "internal", "env": { "API_HOST": "https://yalies.io" } }, "preview": { "distribution": "internal", "env": { "API_HOST": "https://yalies.io" } }, "production": { "env": { "API_HOST": "https://yalies.io" } } } }
login(token)
: Stores the authentication tokenlogout()
: Removes the stored tokengetToken()
: Retrieves the stored tokenauthorize(ticket)
: Authenticates using a ticket parameter
post(endpoint, data, options)
: Makes authenticated POST requests to the API
- Clone the repository
- Install dependencies:
npm install
oryarn install
- Create
.env
file with required variables - Create
eas.json
with build configurations - Run the development server:
expo start
- Development build:
eas build --profile development
- Preview build:
eas build --profile preview
- Production build:
eas build --profile production
- Tokens are stored securely using AsyncStorage
- All API requests are authenticated when a token is available
- HTTPS is enforced for all API communications
[Add your contribution guidelines here]
[Add your license information here]