Mobile app on Android and iOS that provides the user crime density heatmap, real time crime updates using SpotCrime API, and many more safety features.
- Product Owner: Fredy-Edwin Esse
- Scrum Master: Rick Gallegos
- Development Team Members: Sonrisa Chen and Brian Kim
View a video of WalkSafe in action here
- Fork and clone the repo
Environment Variables WalkSafe requires a Mapbox Access Token to use the Mapbox API on the frontend. We have used the .env package, which allows environment variables to be set easily with the .env file in the root directory of the project. An example of the necessary variables for WalkSafe been provided here in this repo.
Backend server and Local Host A fair warning when entering in the environmental variables for HOST, PORT, FACEBOOK_URL, and GOOGLE_URL. These variables should connect to your backend server but emulated Android devices on Android Studio and iOS devices on Xcode run their own local host so setting these environmental variables to route to 127.0.0.1 will have requests that never reach their destination. Use the appropriate IP address to connect to your WalkSafe Server.
NOTE Download Xcode and/or Android Studio depending on what platform you want to develop on.
- Download and install Xcode
- [INSTRUCTIONS FOR XCODE HERE]
- Install dependencies from the root of the repo by running
npm install
- Link dependencies to iOS code by running
react-native link
NOTE If this does not work go to the npm module website for each dependency and follow the iOS instructions for manually linking.
- Start WalkSafe Server
- Start WalkSafe by running:
react-native run-ios
NOTE Building and compiling the React Native JavaScript code into Objective C will initially take a couple of minutes.
NOTE It is important to not have the ios folder nor any of its contents open in your text editor as this may cause the build to fail.
NOTE [CHANGE ME!!!!!] After making changes in JavaScript code in your text editor double tap R to reload WalkSafe and have it reflect your new changes! Push Ctrl + M on the screen to open up the menu to enable remote debugging through Chrome. While debugging it is important to have that Chrome tab in the foreground as it will use up a lot of your computer's resources otherwise.
- Download and install Android Studio
- Create a WalkSafe project in Android Studio
- Click Tools on the toolbar
- Click Android
- Click AVD Manager
- Create a virtual device
- In Android Virtual Device Manager launch virtual device by double clicking on it
- Install dependencies from the root of the repo by running
npm install
- Link dependencies to Android code by running
react-native link
NOTE If this does not work go to the npm module website for each dependency and follow the Android instructions for manually linking.
- Start WalkSafe Server
- Start WalkSafe by running:
react-native run-android
NOTE Building and compiling the React Native JavaScript code into Java will initially take a couple of minutes.
NOTE It is important to not have the android folder nor any of its contents open in your text editor as this may cause the build to fail.
NOTE After making changes in JavaScript code in your text editor double tap R to reload WalkSafe and have it reflect your new changes! Push Ctrl + M on the screen to open up the menu to enable remote debugging through Chrome. While debugging it is important to have that Chrome tab in the foreground as it will use up a lot of your computer's resources otherwise.
- Node 0.10.x
- React Native 0.47.0
- WalkSafe Server
- Xcode
- Android Studio
- Install Xcode and/or Android Studio to run WalkSafe
- Download, install and run Xcode
- Download, install and run Android Studio
From within the root directory:
npm install
react-native link
NOTE If this does not work go to the npm module website for each dependency and follow the Android and/or iOS instructions for manually linking.
View the project roadmap here
View the WalkSafe server repo here
See CONTRIBUTING.md for contribution guidelines.