-
Notifications
You must be signed in to change notification settings - Fork 2
Setup
Sinclair Chen edited this page Jul 27, 2020
·
17 revisions
Click to install Git for your OS.
Click here to install node & npm.
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)
For Mac, update your bash profile with a new path:
export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin";- If there is an existing path set, separate the existing path with a single colon, then provide the path of flutter.
- To set the changes, refresh using: source $HOME/.bash_profile, or simply restart the terminal.
Run git clone https://github.com/SCU-Sustainability/extra-eats.git in the directory of your choice.
- Make the
server/folder your current directory. - Run an
npm install. - Create a file in
server/called.envand add the environment variables (get env var from team) - Then run
npm startto make sure the server starts.
- Make the
client/folder your current directory. - Type
flutter packages getinto a new terminal. - Make sure you have a device emulator running, and type
flutter runin a terminal.
The application should start in the emulator.
- Install Xcode command-line tools using: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer.
- Run:
sudo xcodebuild -licenseto sign the license agreement. - Setup the iOS simulator by running:
open -a Simulator. - Navigate to the client folder in the project repository. Then run: flutter run to start the app in the simulator.