DogStagram is an app for dogs and their best friends, man (I assume!). An individual can have dogs, and a dog can have many pictures. Social interections such as likes can happen to dogs, thier pictures, comments on their pictures, and replies to comments on their pictures. Intentionally, once someone acquires a dog, they cannot leave them. So, no selling of dogs by individuals.
The commercial version of this app will have these features and more.
User views other users and their dogs. User can view individual dogs too. User can acquire new dogs, like dogs, and/or their individual pictures, leave comments like commments, reply to comments, and like replies to comments.
Features of the app include the following;
The goal is create a social media platform focused on dogs.
The challenges include the following;
Click here for the demo
AfroPanTrack frontend is biult with React(^16.12.0), Axios(^0.19.1), google maps react(^2.0.2"), react google maps(^9.4.5), redux(^4.0.5), and redux thunk(^2.3.0). Ensure you have installed these packages with the specified versions or newer ones before cloning this repo. You can find their official installation guides below;
To install the front end of DogStagram, do the following;
yarn add "package-name"
from your terminalcd ios && pod install && cd ..
from your terminal. This installs the necesary podscd android && ./gradlew clean
from your terminal. This will set up required parameters for the android version of the app and you’ll likely have to fix ensuing issues./gradlew signingReport && ./gradlew app:assembleRelease
from your terminal. This is to ensure you have a clean slate of working build ofthe android version of the app and you’ll likely have to fix ensuing issues####### To run the andriod version
adb devices
from your terminal to see available devices/emulators. If none is seen, you might need to properly set up android studio parameters. You’ll likely have to fix ensuing issuesnpx react-native run-android
from your terminal to launch the emulator or create a biuld that can be installed on an android phone####### To run the iOS version
Open the project’s workspace in Xcode and click run. You’ll likely have to fix ensuing issues
If the biuld passes and there is a connected phone, the app will be installed on the phone. You might need to approve permision for the app to run on your phone
Head over to Backend and follow the instructions to build/install the backend API
After installation you need to fire up the backend API and the frontend in that order. For the backend, navigate into the folder you cloned the backend repo into(probably need to run an ls
command to be sure you are in the root app folder), and run rails s
. This would start the backend on the default port 3000
. I used ngrok package to open up my http://localhost:3000
to the internet so that my apps can access the backend through the internet. I wrote this article detailing how to achieve that. Then in a new shell tab or new terminal window, navigate to the folder containing the cloned and properly installed frontend repo and run yarn start
. You will now be given options on what platforms to run the app.
Some of the planned improvements include;
Author: chinomnsoawazie
Source Code: https://github.com/chinomnsoawazie/dogstagram-frontend-mobile
#react-native #react #mobile-apps