project demo link --> https://www.youtube.com/watch?v=LdvO7EjOT7I
Here are the steps you can follow for your project:
Create the project:
Run the command npx create-expo-app Project_name to create the project with the name "Project_name". Navigate to the project directory:
Change the current directory to the project directory using the command cd Project_name. Install dependencies:
Run the command npm install to install all the project dependencies. Start the app:
Launch the Expo development server by running npm start in the project directory. Choose the target platform:
After the development server starts, you can choose the target platform (Android, iOS, or web) by selecting the respective options. Testing on Android and iOS devices:
If you want to test your app on an Android device, scan the QR code displayed after the successful compilation of your app. Use the Expo Go app to scan the QR code and launch the app. Similarly, for iOS devices, you can use the Expo Go app to scan the QR code and run the app. Backend setup:
To start the backend server, navigate to the server directory by running cd server. Start the server by running node index.js. Backend server port:
Your backend server will be running on local port 3001. Setting up Axios:
If you encounter a bad request error, make sure to check your Axios configuration and ensure it is correctly sending requests to the backend server. Please note that the commands provided assume a Unix-based command line interface (CLI). If you're using a different operating system, some commands may vary slightly.