Closed rahulpeacock closed 11 months ago
yes, you can add. can you brief on which API you will be adding?
const [data, setData] = useState<PicDay | null>(null);
useEffect(() => {
const apiUrl = 'http://localhost:5000/earth/today';
axios
.get(apiUrl)
.then((response) => {
const responseData: PicDay = response.data;
setData(responseData);
})
.catch((error) => {
console.error('Error fetching data:', error);
setData(null);
});
}, []);
I would like to use react-query for this fetch call
ok. you can create it.
yes 🍁
I am new to nest.js and prisma but I am getting this error, can you tell me how to resolve I am getting the error when I start the server using the command
pnpm run start
install prisma,
apply prisma migrations
npx prisma migrate status
check if prisma is working and migrations status.
it will create the table in database.
@HamzaMasood7 I am getting this still getting the error
prisma is not installed. its giving error prisma command not found.
see this link. https://www.prisma.io/docs/guides/migrate/developing-with-prisma-migrate
prisma is not installed. its giving error prisma command not found.
see this link. https://www.prisma.io/docs/guides/migrate/developing-with-prisma-migrate
thanks for the support, it worked
@HamzaMasood7 I have completed the react-query integration and made a PR #17
here is the video after integrating react-query
want to add react-query integration to the api calls 🚀