Senior Software Engineer
I am a Senior Backend Software Engineer who currently works with Python, Flask, AWS, and PostgreSQL. In past roles I have operated broadly and got my start very full stack, with varied roles that have included SQL/ETL work, VueJS, C#, and whatever else they could throw at me. In my free time my current interests are Golang and getting into more advanced database topics and I am a paid freelance writer for tech and database companies.
Markdown supported · ⌘↵ to post
You 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
All is well Thank you too