- Install Xcode v11.1 or later to use the iPhone simulator
- Run
node index.jsfrom the server directory to start the back end server - Run
yarn startfrom the client directory to start the client server - Select
run on iOs simulatorfrom the expo browser page, or pressiin terminal running the client server - Select the
Diveapplication from the expo app in iOs simulator
- Run
ngrok http localhost:8080 - Note the Forwarding url that is provided (the https protocol is what worked for us).
- Assign that to a variable called AXIOS_URL in your client-side .env file.
- Make sure your backend server is running (a command like
node/index.jsfrom inside the server directory will do)
-
Inside the cloudinary URL is the developer’s cloudniary name 'https://api.cloudinary.com/v1_1/da4ry89ct/upload' The ‘da4ry89ct’ within that url is an example of a developer’s cloudinary name. To get your own Cloudinary name you will need to go to Cloudinary and create an account. During this process you can create a name or let Cloudinary choose one for you. You will always have access to this name by going to the dashboard in Cloudinary.
-
Another thing you will need is the upload present. Go to the settings section of Cloudinary. Then proceed to the “upload” tab. If you scroll down you will see the “upload presets” section. You will want to set it to “unsigned”. Once you do this, Cloudinary will give you a preset name. It will look similar to “oecwb18t”. This will need to be included inside the fetch request.
- React Native Docs
- Babel Docs
- React Native Elements Docs
- Expo Docs
- Postman
- NodeJS Docs
- MySql Docs
- Cloudinary Docs
© 2020 OperationSpark. This material is copyrighted by OperationSparks and may not be distributed to the public