🐶 Hon Hon
├─ Documents # For submitting assignments
│ ├─ Phase 1
│ ├─ Phase 2
│ └─ Phase 3
└─ Hon-Hon-app # App source
├─ frontend/ # React Native frontend application
└─ backend/ # Node.js backend server
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line.
-
Clone the Repository
git clone /~https://github.com/Lagedane/ReactNativeFinalProject.git
-
Navigate to the Project Directory
cd ReactNativeFinalProject
This project contains two main parts:
- Frontend - built with React Native and Expo.
- Backend - built with Node.js and Express.
-
Navigate to the frontend directory:
cd Hon-Hon-app/frontend
-
Install dependencies:
npm install
-
Start the frontend with Expo:
npx expo start
-
Follow the instructions in the Expo Developer Tools that open in your browser to run the app on an Android or iOS device/simulator.
-
Open a new terminal and navigate to the backend directory:
cd Hon-Hon-app/backend
-
Install dependencies:
npm install
-
Start the backend server:
npm run dev
-
Ensure the backend server is running successfully to allow network requests from the frontend.
To connect to a MongoDB database, create a .env
file in the backend
directory and add the following environment variables:
# MongoDB URI connection string
MONGODB_URI=your_mongodb_connection_string
# Port for backend server
PORT=5000
[ITE-434] Final Project