/overdosePrevention

A map application to help users find the nearest overdose prevention centre

Primary LanguageJavaScriptMIT LicenseMIT

Overdose Prevention

A map application to help users find the nearest overdose prevention centre.

Pre-req

  • NPM & NodeJs @ latest version (https://nodejs.org/en/)
  • Run npm install -g expo-cli
  • Install the Expo mobile app on your device

Tech Stack

  • React-Native
  • MySQL (AWS RDS)
  • API (AWS ApiGateway & Lambda Functions)

Serving App on device (Only works under private network)

  1. Clone repo
  2. Run yarn install
  3. Login to Expo by running expo login and follow the instructions to enter username and password
  4. Run yarn start
  5. Assuming you have logged in to Expo on your Expo mobile app, go to the "projects" tab. You should see your app serving from your computer
  6. Test using yarn test

Troubleshoot

  1. Expo app says the app is taking longer than expected to load
    1. Open up computer terminal and run: ipconfig for Windows. ifconfig for Mac
    2. Check to see if your IP is the same as the one Expo used (Expo shows the IP after you ran yarn start)
    3. If not, try to follow this link for Windows

License

This project is licensed under the MIT License.