- Ensure that you have lerna installed globally:
yarn add -g lerna
- Ensure that you have ngrok installed.
- Create a new directory and clone the repository into it using the following command:
git clone https://github.com/CM20314-Group-2/futureproof.git
- Setup the development environment:
yarn install
- Run the development server:
lerna run --stream dev
- In the
packages/server
subdirectory, open the ngrok tunnel:
ngrok http 3000
- In
packages/client/app.config.ts
, point theextra.ServerAddress
property to the ngrok URL:
...
extra: {
serverAddress: 'http://be0e-195-213-145-15.ngrok.io'
}
...
- Start the GraphQL server:
lerna run --stream dev
- In a new terminal window start the client with:
yarn start
- Open the ExpoGo mobile app, and you should see the app running.
- You can also run the following command to open the app in an android emulator:
expo start --android
or the following command to open the app in an iOS simulator:
expo start --ios