Skip to content

ExplainLabs/codegalaxy-app

Repository files navigation

CI Coverage Status Scala.js

codegalaxy-app

Mobile App for https://codegalaxy.io/

Screenshots

How to open it in your device (Android)

Initial Setup:

Please, make sure you have Node.js version 16.x installed locally.

Then, please make sure you have expo-cli installed globally:

npm i expo-cli@6 -g

Then you can run following commands to init the project:

cd app
npm i

NOTE: when upgrading/re-installing the project perform these commands first:

sbt clean

cd app
rm -rf node_modules
rm package-lock.json

Android Emulator Setup

For android emulator, please, follow these instructions:

How to Build/Run App locally using Expo

First, build the application with the following command:

sbt "project codegalaxy-app" fastOptJS

Then you can run it in emulator:

cd app
npm i
npx expo start --ios
#or:
npx expo start --android

How to Run App with reload workflow

First, build app with reload in sbt

sbt
sbt> project codegalaxy-app
codegalaxy-app> ~fastOptJS

Then, refresh app in Expo client:

  • Cmd+R in emulator (if FastRefresh is disabled)
  • or shake real device and press Reload in then menu