A Tracker app using react native with context API and react navigation and custom express API using ngrok and jsonServer with authentication using JWT, async storage and bcrypt where each user can see their location on map and choose to store it using mongoDB for data persistence
- Install the expo app on your physical device
HyperV should be enabled on your computer in the BIOS.
- Install android studio on your computer
- Create a virtual device and then press on run.
- First install all required dependencies in both main folder and in track-server
npm i
-
Then run your emulator or the expo app on your physical device
-
Then install ngrok from web and set path of ngrok.exe in your Path environment variable
-
Then navigate over to track-server folder and run the command
npm run dev
-
If previous step fails see if your IP is whitelisted on mongoDB website and check your URI link.
-
Then in another terminal run
ngrok http 3000
-
Then copy the forwarding link from previous step and paste it into the baseURL field in tracker.js inside the src folder inside src.
-
Then run inside main folder
npm start