Responsive App using vanilla JS and CSS
Design comparison
Solution retrospective
I struggled to deploy this app because of the API keys that I had to hide on a .env file. However, the .env file is not read by the browser with plain JS.. so I had to rebuild the project using Parcel and it eventually worked!! Would it make more sense to use a framework such as React in that case? Any suggestions to deal with API keys in a vanilla JS project project? Thanks.
Community feedback
- @rfilenkoPosted about 4 years ago
Hey, nice you managed to do it.Advice to follow - choose best tool available for the job, in this case parcel is probably great choice, not to overcomplicate the stack with React. As for the api keys in env file, check vercel documentation how to properly use them when deploying your app.
Cheers, Roman
0@mathieufontainePosted about 4 years ago@rfilenko
Thank you for your quick reply Roman! Ok then I will stick with parcel in the future for this kind of app. I did check the vercel doc but I could not get it right despite following their recommendations.. I may have missed something! Thanks again for your support anyway.
Best, Mathieu
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord