Introduction
In this article, you will create a Bookmark Manager App using FaunaDB GraphQL API and Netlify serverless functions.
By cr...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
I can not fetch API , please help me!
Have you added the Fauna API Key to .env file ?
/src/components/Home/index.js
Line 31:8: React Hook useEffect has a missing dependency: 'getBookmarks'. Either include it or remove the dependency array react-hooks/exhaustive-deps and a warning!
That is fine. it's just a warning
i've!
what error you are getting in the browser console?
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
POST localhost:8888/api/getBookmarks 500 (Internal Server Error) here is true error
Looks like either you missed something while doing the Faunadb configuration or some issue with the code you have written. can you please clone my GitHub repository from here and re-create another fauna database by following the FaunaDB configuration steps mentioned in the beginning of this article. Then use your Fauna API key in the .env file and then verify the application. If it's working, that means you're missing something then compare my code with your code.
FYI: I have again cloned my repository just to verify its working or not and found that, it's working without any issue. So just follow the steps mentioned in my github repository readme.
When i clone your code. I have an issue that's: Browserslist: caniuse-lite is outdated. Please run the following command:
npx browserslist --update-db
That is not an error, it's just a suggestion. It's just saying you're using the old version of browserslist package and a newer version is available. The application will work without updating to the latest version But If you want, you can run the
npx browserslist --update-db
command from the terminal to update to the latest version and then runnetlify dev
command to start the application. I would recomment you to read this entire article once again. I have given clear steps for how to create a bookmark manager application. Please follow them and also read the GitHub repository readme for steps to run the application. Application is working fine. There is no issue. You might be missing something to do so read the article once again. Thanks πFaunaDB UI looks so clean and intuitive ππ
Yes. it looks really nice.π
First time hearing about FaunaDB looks interesting they even have a free plan.
Yes, It simplifies a lot of things and is also easy to use.
ππNice
Thank youπ