Prepared by: Sawmon Abossedgh
Note: This app currently only focuses on a working version for IOS devices.
- First step to being able to run Instaclone is by opening up your terminal and cloning the repo using:
git clone https://github.com/Sawmonabo/instaClone.git - Once you clone the repo you're going to want to run the command
yarn or npm ito download required dependencies from the package.json - Next make sure you have Xcode up-to-date so you can run thier Simulator application.
- Finally, in the project folder rename the file
example.config.jsto justconfig.js.- We will be adding our firebase configurations to this in the next step.
-
Create and/or login to your Firebase account and follow these steps:
-
Click
Add projectand name itInstaCloneand the selectUse Default Account for Firebase -
Click
Add web appat the top middle and name itinstaCloneand continue -
Copy the
firebaseConfigkeys and add them to theconfig.jsfile we renamed earlier -
On the left menu bar click
Build=>Firestore Database=>Create Database- Select whichever location is closer to you
- Then select
Start in Test Mode=>Enable
-
Within the Cloud Firestore console, click
Rulesand copy and paste the following below:rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { // This rule allows anyone with your Firestore database reference to view, edit, // and delete all data in your Firestore database. It is useful for getting // started, but it is configured to expire after 30 days because it // leaves your app open to attackers. At that time, all client // requests to your Firestore database will be denied. // // Make sure to write security rules for your app before that time, or else // all client requests to your Firestore database will be denied until you Update // your rules // // match /{document=**} { // allow read, write: if request.time < timestamp.date(2024, 1, 2); // } function userIsAuthenticated() { return request.auth != null; } match /{path=**}/posts/{postId} { allow read, write: if userIsAuthenticated(); } match /users/{userId} { allow read, write: if userIsAuthenticated(); } } }
-
On the left menu bar click
Build=>Authentication=>Get Started- Under
Native ProvidersselectEmail/Passwordand enableEmail/Password - Don't enable
Email Link, justSave
- Under
-
- After installing the dependencies, go ahead and start the application with
yarn run ios or npm run ios. - Once the app has successfully started on your simulator go ahead and
Sign Upand start exploring!