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 web
yarn install
cd server
yarn install
cd mobile
yarn install
cd web
yarn 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 localbranch
cd mobile
expo eject
(Select ExpoKit)expo publish
- Open
android
directory in Android Studio - Wait for dependencies to install
- Build unsigned apk and send to ITS
- Look for
release buildType
configuration inmobile/android/app/build.gradle
and changesigningConfig
tonull
like 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.apk
inmobile/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 ios
pod install
yarn start
and then Openchi-sun-college.xcworkspace
project inmobile/ios
using XCode- If the app runs locally without issues, zip the entire
mobile
folder containingnode_modules
andmobile/ios/Pods
and send to ITS. - Check previous email conversations in
turingclub.hku@gmail
for further guidance.