Skip to content
Sinclair Chen edited this page Jul 27, 2020 · 17 revisions

Setup

Install git

Click to install Git for your OS.

Install node & npm

Click here to install node & npm.

Install flutter

Click here.

Follow the instructions all the way until they require you to generate a new project.

If you're on Windows, set up a virtual device via Android Studios. (Configure > AVD Manager)

How to add flutter to PATH for Mac

For Mac, update your bash profile with a new path:

  1. export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin";
  2. If there is an existing path set, separate the existing path with a single colon, then provide the path of flutter.
  3. To set the changes, refresh using: source $HOME/.bash_profile, or simply restart the terminal.

Clone the repository

Run git clone https://github.com/SCU-Sustainability/extra-eats.git in the directory of your choice.

Make sure server is working

  1. Make the server/ folder your current directory.
  2. Run an npm install.
  3. Create a file in server/ called .env and add the environment variables (get env var from team)
  4. Then run npm start to make sure the server starts.

Make sure the client is running

  1. Make the client/ folder your current directory.
  2. Type flutter packages get into a new terminal.
  3. Make sure you have a device emulator running, and type flutter run in a terminal.

The application should start in the emulator.

Extra help for Mac

  1. Install Xcode command-line tools using: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer.
  2. Run: sudo xcodebuild -license to sign the license agreement.
  3. Setup the iOS simulator by running: open -a Simulator.
  4. Navigate to the client folder in the project repository. Then run: flutter run to start the app in the simulator.

Clone this wiki locally