Humane Watch App
The Humane Watch App is an exciting project designed to bring a seamless experience to users via their Apple Watch or iOS devices. The project is developed using Apple's Xcode, a robust integrated development environment (IDE) for macOS, and uses Python's Flask framework to manage the server side of the application.
Prerequisites
Before diving into the setup and development of this app, there are several prerequisites to consider:
- macOS with Xcode: You need a Mac running the latest version of Xcode, which is essential for developing and building the app.
- Python 3 and Flask: Python 3 ought to be installed on your system as it is pivotal for running the server-side aspect of the application. Flask, a web framework for Python, is used to handle the server requirements.
- Apple Watch or iOS Simulator: Either an actual Apple Watch device or an iOS simulator with support for watchOS is required to test and run the application.
Setting Up the Xcode Project
Getting started with the Xcode project for the Humane Watch App involves several key steps:
-
Clone the Repository: Begin by cloning the project repository onto your local machine using the command:
git clone https://github.com/Olivia-li/humane.watch.git
This will copy all necessary files and configurations to get you started.
-
Open the Project in Xcode:
- Navigate to the folder where you cloned the project.
- Look for a file with the
.xcodeproj
extension and open it in Xcode. This will bring up the project in the Xcode environment, ready for further development and configuration.
-
Configure the Project:
- Within Xcode, choose your target device, which will be the Apple Watch in this case.
- You will need to sign the project with your Apple Developer account credentials, which is mandatory for running watchOS apps.
-
Build the Application:
- Decide whether you will be using a physical Apple Watch or a simulator. Select it from the available devices in Xcode.
- Press the 'Build' button, represented by a Play icon (▶️), which will compile and prepare the app for deployment and testing.
Running the Flask Server
The other critical component of the Humane Watch App is its server, which is powered by Flask. Setting this up involves:
-
Install dependencies: Use pip, the package installer for Python, to install Flask with this simple command:
pip install flask
This will set up Flask on your system, making it ready to serve the application.
-
Start the Flask Server: Once Flask is installed, you can start the server by running the following command:
python flask_server.py
This will serve the Flask application and allow you to test the server-side functionality.
By following these steps, developers can successfully set up and run the Humane Watch App, whether for testing, further development, or deployment. The synergy between macOS, Xcode, Python, and Flask creates a powerful ecosystem for this innovative watchOS application.