The air-O-Meter app is a React Native application built using TypeScript that provides real-time air quality information based on your current location. It fetches data from the acinc.org API and uses location tracking to determine your current location.
- Real-time air quality data based on your location.
- Interactive and user-friendly interface.
- Detailed air quality information, including pollutant levels and health recommendations.
- Support for dark and light themes.
- Geolocation tracking to provide accurate data based on your current location.
- Data sourced from acinc.org for reliable and up-to-date information.
Before you can run the air-O-Meter app, you need to have the following software installed on your development machine:
- Node.js and npm: You can download and install them from nodejs.org.
Follow these steps to install and run the air-O-Meter app:
-
Clone the repository to your local machine:
git clone https://github.com/lindakw/air-O-meter_appRN.git
-
Navigate to the project directory:
cd air-O-meter_appRN
-
Install the project dependencies:
npm install
-
Create a
.env
file in the project root and configure your API key from acinc.org:ACINC_API_KEY=your-api-key
-
Start the development server:
npm start
-
Run the app on an Android or iOS emulator or device:
npm run android # For Android npm run ios # For iOS
- When you open the app, it will request permission to access your location.
- Once permission is granted, the app will determine your location and fetch air quality data from acinc.org.
- You can view detailed air quality information for your location, including pollutant levels and health recommendations.
- The app supports both dark and light themes, and you can toggle between them in the settings.
You can customize the app by modifying the .env
file with your API key from acinc.org and other configuration options.
We welcome contributions to the air-O-Meter app. If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature/new-feature
orgit checkout -b bugfix/fix-issue
. - Make your changes and commit them with descriptive commit messages.
- Push your branch to your fork:
git push origin feature/new-feature
. - Create a pull request to the
main
branch of the original repository.
Please make sure to adhere to our code of conduct and follow the coding guidelines in the project.
The air-O-Meter app is licensed under the MIT License. Feel free to use, modify, and distribute the code for your own projects.