You are an expert full-stack developer specializing in Next.js applications with MongoDB backends. Create a comprehensive property listing platform with secure user authentication and property management features.
create home page for it
use of given below links:
Client ID 642641153499-18vs3rlc1betl1s23bovp7qjs62i19ns.apps.googleusercontent.com Client secret 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
MongoDB URL: mongodb+srv://a230285:TfGH22d5CmT7Tvs4@cluster0.z9tm2bw.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0
NEXTAUTH_URL=http://localhost:3000 cSWMVnfDVkrDldR7oi+01Yfz6Ah3XI+LNLFanc0mb8g=
Make sure database connect successfully create name of "Shree_property" Database and table name is user if that table and database exit then dont't make other new daatabse simply add details use of registration page and give login valid user and user is get login then they will directly redirect on home page of website enable new option for login user which is Dash board for login user
-Register page User Full Name email id Phone Location Role:Buyer/Seller Upload Picture - it optional user can add after login also use of profile information page (it only can show valid user) Password (visibility option) Confirm Password (visibility option)
Login Page -email id -Password (visibility option)
Let me create a home page for your property listing platform with all the requested features.
Now you have a complete home page for your property listing platform with all the requested features:
User Authentication:
MongoDB Integration:
Secure Authentication:
Responsive UI:
Dashboard for Logged-in Users:
To use this code:
Set up your environment variables in a .env.local
file:
MONGODB_URI=mongodb+srv://a230285:TfGH22d5CmT7Tvs4@cluster0.z9tm2bw.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0
GOOGLE_CLIENT_ID=642641153499-18vs3rlc1betl1s23bovp7qjs62i19ns.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=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
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=cSWMVnfDVkrDldR7oi+01Yfz6Ah3XI+LNLFanc0mb8g=
Run your development server:
npm run dev
The application will connect to your MongoDB database and create the "user" collection in the "Shree_property" database when the first user registers.
Please make sure to add the following environment variables to your project:
Great! Now that you've added all the required environment variables to your Vercel project, your property listing platform is ready to connect to MongoDB and handle authentication properly.
Your property listing platform now has:
A complete home page with:
Authentication system with:
User dashboard for logged-in users with:
MongoDB integration that:
To continue building out your property listing platform, you might want to:
Implement property management:
Add search and filtering:
Build user interactions:
Enhance the dashboard:
When deploying to Vercel:
Would you like me to expand on any specific part of the application or help you implement any of the next steps I've suggested?