This project is an Expo application designed to provide weather information based on user location. Follow the steps below to set up and run the project.
Make sure you have the following installed on your machine:
- Node.js (version 14 or later)
- npm (comes with Node.js)
- Expo CLI (install globally with
npm install -g expo-cli
)
Navigate to the project directory in your terminal and run the following command to install the necessary dependencies:
npm install
Once the dependencies are installed, you can start the app with:
npx expo start
This command will launch the Expo development server. You will see options to open the app in:
- A development build
- An Android emulator
- An iOS simulator
- Expo Go (a mobile app for testing)
The project is organized as follows:
- app/: Contains the main application code.
- _layout.tsx: The root layout component for the app.
- index.tsx: The main entry point for the weather functionality.
- components/: Contains reusable components like
WeatherInfo
,WeatherMap
, andCoordinatesModal
. - types/: Defines TypeScript interfaces for weather data and location data.
- hooks/: Custom hooks for managing weather data.
- services/: Contains the weather service for fetching weather data from an API.
- utils/: Utility functions for handling location data.
You can start developing by editing the files inside the app directory. The project uses file-based routing, making it easy to manage navigation and components.
Feel free to DM me on X @alexchhk