Safe Spaces Finder is a sample React Native application that demonstrates using the Safe Place API by Amadeus.
On your phone, install an app called Expo Go from Google Play or the App Store.
- Make sure you have Node installed on your system. If you don't already have a Node installation, please download and install the latest Node LTS release.
- Clone this repository and open your local copy in a code editor.
- At the root of your project, create a new file called
credentials.json
and paste in the following code:{ "amadeus": { "key": "YOUR_API_KEY", "secret": "YOUR_API_SECRET" } }
- Register with Amadeus for Developers to get access to Amadeus for Developers Self-Service APIs.
- In your Amadeus for Developers self-service workspace, create a new app.
- Get your Amadeus app's actual API key and API secret and paste them into
credentials.json
instead ofYOUR_API KEY
andYOUR_API_SECRET
. - At the root of the project, install dependencies by running
npm install
. - Start the development server for the application:
npx expo start
. - When the development server starts, you'll see a QR code in the terminal. Take your phone and scan the QR code with Expo Go (if you're using Android) or the Camera app (if you're on iOS). Safe Spaces Finder will launch on your phone.