To bring up the Spice backend server, there are a few prerequisites that need to be completed. Please follow the instructions provided in this . Once you have completed the steps, you will get a SERVER URL to use in our Application.
Substitute http://localhost/ with the server URL obtained.
Configure Salt key
To enhance security, you may need to provide the salt key used in the backend for user authentication. The salt key is a randomly generated string that adds an extra layer of security when hashing passwords.
By default, the Salt key is set as spice_opensource, but you can modify it if necessary. Please note that the Salt key must match the key used in the backend.
Synchronize the Gradle files by selecting File > Sync project. After that, you can click on the "Run" button.
Optional
To install an app on an Android emulator in Android Studio you can follow these steps
Open the Android Studio and launch the emulator that you want to use
Click on the "Run" button or press the "Shift" + "F10" keys to open the Run Configuration dialog
Select the app module that you want to run from the "Module" drop-down list
Select the emulator that you want to use from the "Device" drop-down list
Click on the "OK" button to run the app on the selected emulator
Wait for the app to be installed and launched on the emulator.
Note: Before running the app on the emulator, make sure that the emulator is properly configured and running. if not, follow the below instructions:
You can install an Android emulator in Android Studio by following these steps:
Open Android Studio and click on the "AVD Manager" button in the toolbar or navigate to "Tools" -> "AVD Manager".
Click on the "Create Virtual Device" button.
Select a device definition from the list, or click on "New Hardware Profile" to create a custom device definition.
Choose a system image to run on the emulator, and click "Download" if the image has not been previously downloaded.
Click "Next", then customize any additional settings you wish to modify, such as the device name or the amount of RAM allocated to the emulator.
Click "Finish" to create the virtual device.
Once the virtual device is created, you can start it by selecting it from the AVD Manager and clicking the "Play" button.
To install Git on Ubuntu, run the following command in your terminal or click on .
For Windows, you can visit the and download the Git installer.
Use the server URL obtained from the prerequisites mentioned above. Or, you may also follow the steps as mentioned in the .
After starting the emulator, you can install your app on it by running your project in Android Studio and selecting the emulator as the deployment target. If you want to run apps on a hardware device,