To Clone this Repository, open a terminal in a empty folder and type
git clone https://github.com/Jonak-Adipta-Kalita/JAK-Mobile-App.git
To install the required modules, just open a terminal in the directory where this project is cloned. Now type:
npm i
# or
yarn
and hit enter.
Go to Firebase Console and create a Project. Enable Google Analytics. Now click on the Web Icon and create an app. After you created an app click on the cog icon in the sidebar and click on Project Settings. Scroll to the Bottom where you will find your app now click on Config. Copy the Config.
Go to Firebase Console and Select your Project.
Click on the cog icon in the sidebar and click on Project Settings. Now in bottom click on
Add App
and select the Android Logo. Now register your Android app (use
host.exp.exponent
as the Package Name). After the setup open a terminal in the Base
Directory use this commands:
yarn build:android
after that command do this command (You'll need Java JDK to use this command):
eas credentials
this will give you the SHA-1
and the SHA-256
fingerprints. Paste them in your Android
App in Firebase Console then Download the google-services.json
. Rename it to
google_services_android.json
and put it in the Base Directory of the Project.
Go to Firebase Console and Select your Project.
Click on the cog icon in the sidebar and click on Project Settings. Now in bottom click on
Add App
and select the IOS Logo. Now register your IOS app (use host.exp.exponent
as
the Bundle ID) and also don't forget to download the GoogleService-Info.plist
(after
completing the setup). Rename it to google_services_ios.plist
and put it in the Base
Directory of the Project.
In the Project in Firebase click on Authentication in the Sidebar. Enable Authentication.
Click on Email/Password
in the Authentication tab and Enable It.
In the Project in Firebase click on Firestore Database in the Sidebar. Click on Enable Firestore. Start in Test Mode and leave the Timezone as it is.
In the Project in Firebase click on Storage in the Sidebar. Click on Enable. (Sometimes Storage is automatically Enabled)
Create a file name .env
in the Base Directory. Copy everything in .env.example
and paste it in .env
but change the credentials.
If you are in Windows: Download Android Studio
npm run start:android
# or
yarn start:android
If you are in MAC: Download XCode
npm run start:ios
# or
yarn start:ios
In a Terminal in the Base Directory type
npm install -g firebase-tools
# or
yard global add firebase-tools
and press Enter.
In a Terminal in the Base Directory type
firebase login
and press Enter. You will be Redirected to a Web Page, Login with your Google Account that has your Firebase Project.
In a Terminal in the Base Directory type
firebase init firestore, storage
and press Enter. Now select Use an Existing Project
and hit Enter. Now select your
Project and press Enter.
- Rules:
firestore.rules
- Indexes:
firestore.indexes.json
- Rules:
storage.rules
In a Terminal in the Base Directory type
npm run publish:firebase
# or
yarn publish:firebase
and press Enter.