full-stack-estate's People
Forkers
etekumoses sundarshahi zihadm654 zafranx hoanghailethe miketeddyomondi ivandi1980 hidding-dev meshhack ozgurcelix angeloluidens bilalzafarr0001 e-jfc mario-coxe jeandedieuh ifazo socheth 1999marouane longdobp turkiye-acik-kaynak-yazilim-grubu vbmars jayant2012 ajgaht codemonk30 luvongam hood-codivo muraliairody shakir737 ayubsimbaa sheharyar tsokor luckycode100 sanyasehgal24 kostandinosvas bedwi4dev princewhyte2 owais-963 code-with-godie cskfanbase43606 usama387 tomato414941 vedvyasaa amadujah umangkartikey alif-al-razi lkrbalci-forks mohamedadel101 zbahati danny4122 sanjana0001 trentfleet nitesh01487 antontuzov boomiking8 krishnaacharyaa goldencicada1 eradharmarathne truongtho195 ndakotsu1015 devsrakesh saisruja analabasylvester l-rrrr megha019 samten606 rudhav varungirikon laxmanlucky68 briantinns juniormorgan sreegopankr codewithwade hvs1234 subhash-vadlamani belal-uddin19 abhish7781 vr-1929 jopaleti soufiane4906 azinwiboris cellmanguney decode-ab krizto8 sravani59 marsden-tech jacques-fresco kacemfazeni mouneeshomkaram saifhasan14 dhairya0102 mthirumalai2905 ngenome lipughadei hailemariam7 vaibhavbarala26 bhavishyapatidar elliotnorbu abdijibardeqfull-stack-estate's Issues
add chat route not added to the client side for sending a message to a poster for the first time!!
Need to add the apiRequest for addChat on the client side to start a chat with a user if it hasn't been done previously. Then, either initiate a chat or check if a chat already exists, and decide whether to create a new chat or continue with the existing one.
Check this image can create a handler to initiate a chat for the first time
profileUpdatePage Error
after creating profile update page this errors occurred in web page and console how can we fix it
Unexpected Application Error!
Objects are not valid as a React child (found: object with keys {message, name, code, config, request, response}). If you meant to render a collection of children, use an array instead.
Error: Objects are not valid as a React child (found: object with keys {message, name, code, config, request, response}). If you meant to render a collection of children, use an array instead.
at throwOnInvalidObjectType (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:11222:17)
at reconcileChildFibers2 (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:11852:15)
at reconcileChildren (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:14292:37)
at updateHostComponent (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:14802:11)
at beginWork (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:15923:22)
at beginWork$1 (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19749:22)
at performUnitOfWork (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19194:20)
at workLoopSync (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19133:13)
at renderRootSync (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19112:15)
at recoverFromConcurrentError (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:18732:28)
at performConcurrentWorkOnRoot (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:18680:30)
at workLoop (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:197:42)
at flushWork (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:176:22)
at MessagePort.performWorkUntilDeadline (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:384:29)
**Here the error occur in console **
Argument user
is missing.
at Tn (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:115:6855)
at In.handleRequestError (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:122:6510)
at In.handleAndLogRequestError (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:122:6188)
at In.request (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:122:5896)
at async l (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:127:11167)
at async addPost (file:///C:/Users/Kavindu/Desktop/Push/api/controllers/post.controller.js:44:21) {
clientVersion: '5.13.0'
}
ENV Example Please!
Would you mind adding the .env.example file to guide us on all the environment variables used.
"unique" restriction in Prisma Schema
The @unique restrictions in SavedPost { userId and postId} generates an error when you try to save a post with different accounts, limiting the Save function to a single user.
Improved code:
model SavedPost {
id String @id @default(auto()) @Map("_id") @db.ObjectId
user User @relation(fields: [userId], references: [id])
post Post @relation(fields: [postId], references: [id])
userId String @db.ObjectId
postId String @db.ObjectId
createdAt DateTime @default(now())
@@unique([userId, postId])
}
post creation error
Argument user
is missing. error affecting only when using client side software, when using api handling software Postman post was created successfully
PrismaClientValidationError:
Invalid prisma.post.create()
invocation:
{
data: {
title: "topi",
price: 595,
address: "gopi",
city: "bbuyy",
bedroom: null,
bathroom: null,
type: "rent",
property: "apartment",
latitude: "Nihil gloriosis solum extremo",
longitude: "Expectant solvantur antiquis sentiant",
images: [
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644668/posts/bdml2i788ltutawhuoff.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644669/posts/x4h0ryoxp1wlfqmqgq8h.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644669/posts/ear2u64cifehvcqdarf8.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644671/posts/tbypzq9tioysgcca5kup.jpg"
],
userId: "663218604260a76920dd4c9b",
postDetail: {
create: {
desc: "
lorem ispum
",utilities: "owner",
pet: "allowed",
income: "Mundi amarissimam didicisset eripuit",
size: 3979,
school: 5491,
bus: 2234,
restaurant: 7662
}
},
- user: {
-
create: UserCreateWithoutPostInput | UserUncheckedCreateWithoutPostInput,
-
connectOrCreate: UserCreateOrConnectWithoutPostInput,
-
connect: UserWhereUniqueInput
- }
}
}
Argument user
is missing.
at Tn (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:115:6855)
at In.handleRequestError (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:6510)
at In.handleAndLogRequestError (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:6188)
at In.request (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:5896)
at async l (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:127:11167)
at async addPost (file:///C:/Users/Shreyash1/Desktop/real-estate-react-project/api/controllers/post.controller.js:67:25) {
clientVersion: '5.13.0'
}
[nodemon] restarting due to changes...
[nodemon] starting node api/app.js app.js
test
server is running on port 5000
PrismaClientValidationError:
Invalid prisma.post.create()
invocation:
{
data: {
title: "topi house",
price: 595,
address: "gopi",
city: "mars",
bedroom: 1,
bathroom: 1,
type: "rent",
property: "apartment",
latitude: "83787533",
longitude: "36346433",
images: [
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644668/posts/bdml2i788ltutawhuoff.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644669/posts/x4h0ryoxp1wlfqmqgq8h.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644669/posts/ear2u64cifehvcqdarf8.jpg",
"https://res.cloudinary.com/shreyash-cloudinary/image/upload/v1714644671/posts/tbypzq9tioysgcca5kup.jpg"
],
userId: "663218604260a76920dd4c9b",
postDetail: {
create: {
desc: "
lorem ispum
",utilities: "owner",
pet: "allowed",
income: "Mundi amarissimam didicisset eripuit",
size: 3979,
school: 5491,
bus: 2234,
restaurant: 7662
}
},
- user: {
-
create: UserCreateWithoutPostInput | UserUncheckedCreateWithoutPostInput,
-
connectOrCreate: UserCreateOrConnectWithoutPostInput,
-
connect: UserWhereUniqueInput
- }
}
}
Argument user
is missing.
at Tn (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:115:6855)
at In.handleRequestError (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:6510)
at In.handleAndLogRequestError (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:6188)
at In.request (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:122:5896)
at async l (C:\Users\Shreyash1\Desktop\real-estate-react-project\api\node_modules@prisma\client\runtime\library.js:127:11167)
at async addPost (file:///C:/Users/Shreyash1/Desktop/real-estate-react-project/api/controllers/post.controller.js:66:25) {
clientVersion: '5.13.0'
}
Setting up the web app
on Saving the place i get an error
When i click on the Save the Place i get an axios Network error and an ERR_CONNECTION_REFUSED for http://localhost:8800/api/users/save and i checked it in postman still i am facing this issue.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.