Installation
Last updated
Was this helpful?
Last updated
Was this helpful?
Navigate to the folder where you downloaded Gravity and open the .env & /config/default.json files located in the /server folder and then populate your database and Mailgun credentials.
To use social sign-ons you must add your Facebook and Twitter API keys to the .env file and also the callback URLs to /config. .
You must complete this step before proceeding.
The Expo CLI will enable you to perform various Expo tasks, like running and building your app.
On your iOS or Android mobile device, visit the respective app store, download the Expo mobile client then .
The installation process is the same as described in the , except you must specify your desired database driver if not using MySQL.
This will install all of the dependencies required. Once the installation process has finished, you can start your app:
If you open the Expo mobile app or iOS or Android simulator, you can see your app.
Inside /app/config.json is a baseURL setting that points to the Gravity server for making API calls. During setup, this will be automatically set to your local network address, but you should update this to point to your development server.
Once installed, please update the callback_url inside the /config folder files and also the baseURL value inside app/config.json
Finally, to run your app any time, enter the following command.
This will start both Gravity Server and the Expo client.
Once your Expo server is running, you can open your app in the Android simulator by pressing a or i to open the iOS simulator.
If you want to use social sign-ons in your application, you must to handle the redirects.