For those of us who don’t get to work with frontend technologies, it can be hard to stay up to speed on the latest & greatest developments with JavaScript frameworks. For this reason, today we are going to explore two very popular frameworks, Vue and...
heyjtk.hashnode.dev16 min readYou mention that you need to keep your Fauna key safe, which I agree with. However, you then embed those keys into your app. Those keys will ship as part of your JS files.
Since the keys you created in this example are admin keys I'm guessing that would give someone full access to your data. You might be ok with some restricted read-only keys. Otherwise, you may want to move your data access to something like a serverless function.
The Vue CLI documentation specifically says not to store private or secret information in the .env files.
Always great to see Svelte getting favorable press. One thing I thought I would mention is that while $$props will work to access properties, it isn't the official way of doing it.
As per the Svelte docs, you want to have something like this in your script block:
export let db;
export let q;
Great writing JTK!
P.S. If you are using any social media (twitter, linkedin) I'd suggest you add them to your Hashnode profile so more people can follow your work.
Iqboljon Mutalibov
IqbolJON
All is well Thank you too