This front end app is built with React Native and Expo to access Node.js api and a React admin dashboard web app.
- Frameworks
- React Native
- Expo
- UI library
- React-Native-Paper (https://callstack.github.io/react-native-paper/)
- React-Native-Elements (https://reactnativeelements.com/docs) - As backup if additional materials needed.
- git
- npm
- Clone the repo
git clone https://github.com/unifygiving/UG-Frontend-Stage.git
- Install NPM packages
npx expo install --npm
- If there are any errors
npx expo install --npm -- --force
- In the same terminal and directory, start the expo app using the command
npx expo start
- To start the app in android
or press "a" when expo is started and you see the QR code.
npx expo start --android
- To start the app in IOS, press "i" after expo has started and you see the QR code.
- To refresh the app at any time, press "r" in the terminal.
- To stop the app and terminate the expo server, press "ctrl + c" on Windows or "cmd + c" on Mac.
You can test via a emulator on your pc, Visual Studio has one, or on Android Studio. You can also test via the Expo Go app on your phone. It will communicate with the terminal server and start it for you when you run npx expo start.
As you make changes to your code and you have the expo server running, it should automatically refresh the app.
-
Upon onboarding, you'll receive access to our Trello board and Unify Giving GitHub repository. To start work, you can just navigate to the Trello board. The columns are as follows:
- Backlog: Contains tickets needing further details.
- Ready to be worked on: Tasks ready for assignment.
- In progress: Currently active tasks.
- To review: For PR submissions.
- Done: Approved and merged tasks.
- Wait for the reviewer to review your code. If everything looks fine, the reviewer will merge the pull request on GitHub, and delete your branch on GitHub. Then on your machine, you can switch back to your main branch, and delete the branch you were working on since it has been accepted and merged.
- If the reviewer wants you to make changes to your pull request, watch this short video for an example of how to do code reviews on GitHub https://www.youtube.com/watch?v=UpBpb0j7IKA.
-
Assign yourself from 'Ready to be worked on', move to 'To review' after PR submission, and then to 'Done' upon approval. Let's collaborate efficiently!
** For Android testing: To test, Visual Studios or Visual Studio Code provides a built-in emulator. Android Studio can be downloaded for another option that provides an emulator and a coding space.
** For IOS testing: If you have a MAC, you can download xCode to test IOS.
- The
.vsfolder - The
androidfolder - The
assetsfolder contains all the icons, logos and images used in the app. - The
server-backendfolder - The
srcfolder contains theareasandcomponentsfolders.- The
areasfolder contains the following folders:charity-screensdonor-screensonboardingrecipient-screens
- The
componentsfolder contains the following:corefolderColours.jsDonorRoutes.jsNavigationRoutes.jsindex.ts
- The