Posts

Closer look at Bhagavad Gita REST API and JSON public GitHub repos

Last updated on 14 Oct. 2024 My post: Bhagavad Gita and some other Hindu scripture websites/web apps with source code (Next.js, React, React Native, REST API, JSON, AI-ChatGPT), https://raviswdev.blogspot.com/2024/05/bhagavad-gita-and-hindu-scripture.html  lists some public Gita repositories including REST API and JSON repos. At the time I put up the post, I did not spend much time on details of the REST API and JSON repos. Now I am taking a closer look at them. About the two REST APIs listed in my above post: https://github.com/gita/bhagavad-gita-api is in Python. I don't want to get into Python stuff now. https://github.com/vedicscriptures/bhagavad-gita-api is in Express JS and uses mongoose. I think I should be able to go through this source code. More details covered later on in this post. About the three Gita JSON data sources listed in my above post: https://github.com/bhavykhatri/DharmicData/tree/main/SrimadBhagvadGita has 18 JSON files with translations for each chapter ...

Notes on quick 1st round of remaining part of John Smilga Node Express tutorial (after Tasks project)

Last updated on 9 Oct. 2024 2 & 3 Oct. 2024: Continuing from after Tasks project in John Smilga Express tutorial...Node.js Projects, https://youtu.be/rltfdjcXjmk?t=11235  (from around 3 hrs, 7 mins in the video). The next project taken up is the Store project. express-async-errors, https://www.npmjs.com/package/express-async-errors Most of the source code of the Store project is straight-forward and somewhat similar to Tasks project. However, controllers\products.js has fair deal of complexity as it uses the various query features of Mongoose find() with Query String params being the mechanism for specifying the query to the get route ('routed' to getAllProducts() method in controllers\products.js file). The code for string data query is simple. Numeric data query code is complex which is covered below in some detail. Chaining the find method conditionally with sort and select methods, and unconditionally with skip and limit methods is new in the tutorial. The await keyword...

Biodata/résumé (simple) project related notes

Last updated on 6 Oct. 2024 Over past few days I am updating my (Ravi S. Iyer) biodata/résumé  - GitHub repo . Some notes related to the biodata source files/project are given below: How to load CSS files using JavaScript?, https://www.geeksforgeeks.org/how-to-load-css-files-using-javascript/ Get Query String Parameters with JavaScript, https://davidwalsh.name/query-string-javascript To force Chrome to discard cache for specific site/URL and reload page: Ctrl+F5 . I had to do this to get Chrome to show my latest biodata page hosted on github. Ref: clear cache for specific website in Google chrome, https://support.google.com/chrome/thread/16531954/clear-cache-for-specific-website-in-google-chrome?hl=en To save a web page (biodata, in this case) in colour as PDF in Chrome, check "Background graphics" option in Save As PDF dialog. Ref: Win10 - Is there a way to print a web page to PDF in color?, https://www.reddit.com/r/techsupport/comments/nlnw7s/win10_is_there_a_way_to_print_a...

Notes on 3rd round of Node.js, Express.js, Mongoose and MongoDB tutorials with quick refresher of (simple) Blog full stack app

Last updated on 30 Sep. 2024 Note: I had done first and second round of Full Stack (MERN) web development based on my roadmap with second round getting over sometime in March 2024. The first and second round notes of sections  related to Node, Express, Mongoose and MongoDB can be viewed here:  https://raviswdev.blogspot.com/2024/03/learning-web-app-development-through.html#nodejsexpressjs .  I don't think there is a clear differentiation between notes of 1st and 2nd rounds. 24 Sep. 2024: Started refreshing my Node.js and Node Express learning. I think the last time I did non-trivial Node.js, Express (or Mongoose/MongoDB) was in March 2024. So there has been a break of around 6 months. https://www.mongodb.com/developer/languages/javascript/getting-started-with-mongodb-and-mongoose/ In express tutorial, methods-public\styles.css uses: h5 + h5 {   margin-left: 1rem; } ---- The '+' is an adjacent sibling selector. Ref: '+ (plus) Sign:' section in Understand '+'...

Notes on 3rd round of Next.js official tutorial

Last updated on 1 Oct. 2024 Note: Previous rounds are covered in:  Notes on learning Next.js - 1st round and 2nd round .   8 Sept. 2024: Starting 3rd round of Next.js official tutorial. First I am reading through its React tutorial (not trying out). [Update: Finished the 3rd round on 24 Sept. 2024]. How To Create A Next.Js App With Serverless?, https://www.saffrontech.net/blog/how-to-create-a-nextjs-app-with-serverless , Jan. 2024 . Article explains serverless architecture in the context of Next.js. Around half-way down the article, how to create a serverless Next.js app is covered. Special steps are involved (e.g. installing 'serverless' framework and then running 'serverless create ...' command). I guess that means that the projects I have done so far in Next.js are NOT serverless including the official Next.js tutorial. Chapter 4, Getting Started with React, https://nextjs.org/learn/react-foundations/getting-started-with-react has a nice simple example of using Reac...