Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mobile/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
API_BASE_URL=https://example.com
SOCKET_BASE_URL=wss://example.com
27 changes: 27 additions & 0 deletions mobile/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# GovTech Learning App Mobile Structure

This folder contains the initial scalable React Native architecture proposal for the GovTech learning application.

## Folder Structure

src/
├── api/
├── components/
├── config/
├── constants/
├── hooks/
├── navigation/
├── screens/
├── services/
├── store/
├── theme/
└── utils/

## Purpose

This structure is designed to support:
- LMS integration
- offline-first architecture
- AI Tutor integration
- scalable feature development
- white-label deployments
6 changes: 6 additions & 0 deletions mobile/src/api/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import axios from "axios";
import { CONFIG } from "../config";

export const apiClient = axios.create({
baseURL: CONFIG.API_BASE_URL,
});
4 changes: 4 additions & 0 deletions mobile/src/api/components/config/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const CONFIG = {
API_BASE_URL: process.env.API_BASE_URL || "",
SOCKET_BASE_URL: process.env.SOCKET_BASE_URL || "",
};