This is the repository for the web and mobile apps of Chi Sun College of the University of Hong Kong. They are developed by the Chi Sun Turing Club to provide a one-stop platform for Chi Sun students to gain all information relevant to the college.
cd webyarn install
cd serveryarn install
cd mobileyarn install
cd webyarn start- Visit web app at http://localhost:3000/
- Go to server directory
cd server - Run server
yarn dev - Open GraphQL Playground at http://localhost:4000/graphql
- If you don't have expo installed, install by
npm install -g expo-cli - Go to mobile directory
cd mobile - Run app
expo start - Download Expo mobile app and scan QR code to run the app
git subtree push --prefix server/ https://git.heroku.com/hkuchisuncollege.git master
- Ensure you are in master branch by
git branch - Deploy by
yarn deploy - Visit web app at http://hkuturingclub.github.io/ChiSunApp
- Update version in
mobile/app.json git checkout -b localbranchcd mobileexpo eject(Select ExpoKit)expo publish
- Open
androiddirectory in Android Studio - Wait for dependencies to install
- Build unsigned apk and send to ITS
- Look for
release buildTypeconfiguration inmobile/android/app/build.gradleand changesigningConfigtonulllike this:
android {
...
buildTypes {
...
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
consumerProguardFiles 'proguard-rules.pro'
signingConfig null
}
}
...
}
- Run assembleRelease task:
./gradlew assembleRelease - If everything goes well you can find
app-release-unsigned.apkinmobile/android/app/build/outputs/apk/release
The following commands should be done in a separate branch and that branch should be deleted once the deployment is finished. Basically, we eject our app every time we have to send it to ITS.
cd iospod installyarn startand then Openchi-sun-college.xcworkspaceproject inmobile/iosusing XCode- If the app runs locally without issues, zip the entire
mobilefolder containingnode_modulesandmobile/ios/Podsand send to ITS. - Check previous email conversations in
turingclub.hku@gmailfor further guidance.