Final Project This semester, we've learned some great tools for web development. Now, we…
- User
Final Project This semester, we've learned some great tools for web development. Now, we will put them all together to make an amazing final project! Outline This project will involve building a React web app complete with a connection to a Firestore database. You will be working in groups of 3 or 4 to complete this final project. Your method of collaboration is up to you, but using GitHub is strongly advised. Requirements
- Firebase authentication system
- Firestore database connection on Frontend
- Create, Read, Update, Delete operations
- Use conditional rendering (at least once)
- Use ES6 syntax (includes arrow functions, spreading, destructuring)
- Use Functional programming (map/filter/reduce)
- Use React Hooks
- Use TypeScript (and code is well typed, so no any)
- Use Next.js with at least 2 pages
Step 1 Time to properly get started coding! Get started implementing the frontend, using the skills we learned in class (Next.js, CSS, etc.). Use hardcoded data for now as necessary just to get the layout done. These can be default values embedded in your frontend code. You will connect it to the database in the subsequent milestones.
This is the React web app we would like to build:
Our web app is a forum for Cornell students to review dining halls on campus. This app allows users to leave ratings and reviews for different dining halls, as well as view reviews left by other users. The main page shows a gallery of the various dining halls on campus with their respective average rating, and users can click on a dining hall to view all the reviews left for that specific dining hall. The entry form page allows users to add a rating and review.
We’ll use Firestore for our database schema, and we’ll have two collections: one for dining halls and one for reviews. The dining halls collection will store each dining hall’s name, image, URL, and average rating (calculated from all the reviews left for that dining hall). Then, the reviews collection will store each review’s dining hall ID (to link the review to the correct dining hall), User ID (to link the review to the user who left it), rating (1–5 stars), and description. To link a review to the dining hall that it's for, we'll use a dining Hall ID field in the Reviews collection, and this ID will correspond to the auto-generated ID for the relevant document in the Dining Halls collection. This type of scheme will allow us to easily retrieve and display information about each dining hall and the reviews that were left for that dining hall. We can calculate the average rating by querying the Reviews collection and taking the average of all the ratings for that specific dining hall. We’ll also use Firebase authentication for user login/sign-up and also conditional rendering to display different components based on whether the user is logged in or not.
For this project, can you complete Step 1 by implementing the entire frontend? You must also use ES6, TypeScript, component structure, hooks, and functional programming.
- Assistant
- User
can you show in depth how i can make this web app
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.