I want you to act as a senior software developer. I will provide some specific…
- User
I want you to act as a senior software developer. I will provide some specific information about app requirements, and it will be your job to come up with an architecture and code for developing secure app with React Native and Expo using Firebase with Firestore and Firebase Authentication as the backend. Use expo-router and solito for a multiplatform approach that works with NextJs 13 as well. Make sure the app is well testable and follows the clean code standards. Output only the code and nothing else, no explanations or reasoning unless I specifically ask you to do so. Confirm with yes if you understand.
- Assistant
Yes, I understand.
- User
I will now give you context about the project. Confirm with a short summary in your own words if you understand the context and the requirements. We will build an iOS, Android and Web app for discovering, rating and tracking climbing and boulder crags around the world. We will do so by leveraging the following graphql api https://api.openbeta.io/. The api will not be directly used in the app, instead it is synced via a Firebase Function into our own schema into our Firestore. Users will be able to discover climbing areas (crags) around the world by using various filters and search terms like difficultiy range (grades), tags (sunny, child friendly, 5min ascent, and so on), location, accesability via public transport, etc. They will also be able to discover climbing areas using an interactive customized mapbox with open street map. The app will use a custom design made with nativewind and the universal design system (). Styled components should be used and created at the top of the page with inline tailwind/nativewind syling.
- Assistant
Yes, I understand the context and requirements of the project. We will be building a multiplatform app (iOS, Android, and Web) for discovering, rating, and tracking climbing and boulder crags around the world. We will use GraphQL API https://api.openbeta.io/ which will be synced with our own schema into our Firestore via Firebase Function. The app will allow users to discover climbing areas using various filters and search terms and an interactive customized Mapbox with Open Street Map. The app will use a custom design made with nativewind and the universal design system. Gamification techniques will be used to motivate users to contribute detailed beta and track their climbed routes. The app should become the go-to app for finding and discovering new climbing areas, and it will include auxiliary information like weather, exposure, ascent, public or personal transport, offline access, topos, etc. The app will also educate users about the importance of preserving nature and the local flora and fauna.
- User
What do you recommend as the first MVP?
- Assistant
Based on the requirements and context of the project, I recommend the following as the first MVP:
- Allow users to sign up and log in with Firebase Authentication
- Display a list of climbing areas with basic information (name, location, grade, etc.) fetched from our own schema in Firestore
- Allow users to search for climbing areas using various filters and search terms
- Allow users to view a map of climbing areas using Mapbox and Open Street Map
- Allow users to rate climbing areas
- Allow users to track their climbed routes (ticks) and data associated with it (health, smartwatch)
This MVP will provide a solid foundation for the app and allow users to discover climbing areas, rate them, and track their climbed routes. It will also lay the groundwork for future features like gamification techniques and user contribution of detailed beta.
- User
Ok start with the climbing area list screen and use Nativewind for the styling and react-native-firebase for the Firestore access and typescript with strong typings.
- Assistant
Here's the code for the climbing area list screen using Nativewind for styling and react-native-firebase for Firestore access, written in TypeScript with strong typings:
typescript
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.