Norwich Travel Information Website (HCI CW2 - CMP-6039A)
The app is available on Expo at: https://exp.host/@penson122/norwich-travel (Open this in Expo for iOS or Android)
The backend is available on heroku
npm install -g yarn // why aren't you using yarn already?
yarn install // get all the dependencies
yarn test // run the Jest testwatcher
yarn android // adb to start android emulator or device installation
yarn ios // use Simulator to emulate iOS emulation
- Make sure the following have been installed:
- Android Studio and SDK
- Genymotion (free for personal use) with VirutalBox!!
- Inside Genymotion set up Android Virtual Machine 7.1 or later
- Double check VirtualBox can be run (if not install VirutalBox)
- Add Android\sdk\platform-tools to PATH
- Run Genymotion Virtual Machine
- Run
yarn android
and enjoy the miracles of React (and have a cuppa, that was a lot)
brew tap caskroom/cask
brew cask install android-sdk
- Install Genymotion (free for personal use)
- Go to ADB -> Custom Android SDK, set to location of installed android-sdk
- Done.
sudo apt-get install android-sdk
- Install Genymotion
- Done.
- Update XCode
- Launch Simulator
- Hardware -> Device -> iOS -> Select a device
- Set environment variables
- Or use .env file in server/.env
- TRANSPORT_API_ID=MY_APP_ID
- TRANSPORT_API_KEY=MY_TRANSPORT_KEY
- GOOGLE_MAPS_KEY=MY_GOOGLE_MAPS_KEY
Transport API Keys are available from TransportAPI Google Maps API Key are available from Google Maps
- If you want test against your own version of the server change the
constants.js NORWICH_API
to the url for your server - All dates must be formatted yyyy-mm-dd
- All times must be formated HH:MM
GET :/ train/:station
-> example
GET :/ train/:station/:date
-> example
GET :/ train/:station/:date/:time
-> example
GET :/ bus/:code
GET :/ bus/:code/:date
GET :/ bus/:code/:date/:time
GET :/ taxis
-> example