This is the frontend codebase for the Nammayatri app.
To install the frontend dependencies, first enter the development shell by running
nix develop .#frontend
This will give you access to all of the purescript tooling as well as the correct version of node
Then navigate to the frontend > ui-customer/ui-driver both and install the npm dependencies by running the following command:
npm i
Start the development server by running the following command:
npm start
To start the frontend app for Android, follow these steps:
1. Open `android-native` in Android Studio
2. select build variant
3. Add the google-services.json file to the app folder.
4. Add the MAPS_API_KEY to the local.properties file.
5. Add USER_MERCHANT_ID and DRIVER_MERCHANT_ID to the local.properties file.
6. Run the app after selecting a device and build variant.
To create bundle for the app, follow these steps:
1. Open android-native
in terminal
2. run the below command
bash bundling.sh <userMerchantDir> <driverMerchantDir>
ex : bash bundling.sh nammaYatri nammaYatriPartner
To update the juspay_assets.json
, follow these steps:
1. Open android-native
in terminal
2. run the below command
bash userJuspayAssets.sh <userMerchantDir>
ex : bash userJuspayAssets.sh nammaYatri
bash driverJuspayAssets.sh <driverMerchantDir>
ex : bash driverJuspayAssets.sh nammaYatri
Starting the Server
npm run start:android:<master, sandbox, or prod>
To start the frontend app for IOS, follow these steps:
Starting the Server
npm run start:ios:<master, sandbox, or prod>