How to use Nginx with Docker Compose effectively with examples
Geshan's Blog
by Geshan Manandhar
1M ago
Nginx, a free, open-source, high-performance web server and reverse proxy, has become a cornerstone of modern web applications. Its versatility, efficiency, and ability to handle high-traffic loads make it a popular choice among developers and organizations alike. In this post, you are going to learn how to use Niginx with Docker and Docker Compose with a simple example and another example that is closer to a real-life scenario, let’s get started! Table of contents # Nginx and Docker compose Prerequisites Nginx Docker Compose a simple example Multi-container example with Nginx and Docker comp ..read more
Visit website
How to use docker compose depends_on a beginner's guide
Geshan's Blog
by Geshan Manandhar
1M ago
Docker Compose is a powerful tool that allows you to define and run multi-container Docker applications. It simplifies the process of managing and orchestrating multiple containers, making it a popular choice for development and testing environments. One of the key features of Docker Compose is the depends_on option, which allows you to specify dependencies between services. In this beginner's guide, you will explore how to use depends_on effectively, ensuring your services start up in the correct order and function seamlessly. Let’s get started!! Table of contents # Docker compose depends on ..read more
Visit website
How to create a text summarizer API using Gemini on Vertex AI with Node.js a step-by-step guide [Part 2]
Geshan's Blog
by Geshan Manandhar
2M ago
Gemini by Google is a powerful LLM and in this tutorial, you will use the Gemini Pro 1.0 version to summarize text from a URL. In the previous part you learned how to set up a GCP project, try out the prompt on Vertex AI studio and then try to code on the CLI. In this part, you will refactor and converter that code to take in a URL, scrape its content, and use it to create the summary, let's get going! Table of contents # Where we left in the last part Build the Node.js API Create gemini.js file Add scraper.js file New cli.js Build the Express.js API Conclusion Where we left in the last p ..read more
Visit website
How to create a text summarizer using Gemini over Vertex AI with Node.js a step-by-step guide [Part 1]
Geshan's Blog
by Geshan Manandhar
2M ago
Gemini by Google is a powerful multimodal Large Language Model (LLM) capable of taking images, videos, and text as input and generating text and images. Gemini has 3 versions Nano, Pro, and Ultra. For this post, you will use Gemini Pro 1.0 via Vertex AI to create summarizer then run it on the CLI using Node.js, let’s get started! Table of contents # Prerequisites Summarizer with Gemini API on Vertex AI Run the summarizer in the CLI with Node.js Next steps Conclusion Prerequisites # Before getting your hands dirty with the code, below are some prerequisites you should have: You should have a ..read more
Visit website
How to use Google Cloud Shell Editor to deploy a project from GitHub to Cloud Run
Geshan's Blog
by Geshan Manandhar
3M ago
Google Cloud Shell Editor is like having a VS code editor inside of your browser that can be used to get most things done. In this post, you will use the Google Cloud Shell editor to pull in code from an open-source repository and deploy it to Cloud Run without leaving your browser. Let’s get started! Table of contents # Google Cloud Shell Terminal Cloud Shell Editor Example code to pull in from GitHub Make a small change Deploy code to Cloud Run Check the working app Conclusion Google Cloud Shell Terminal # Google Cloud Shell is your online command center for Google Cloud. It's a pre-config ..read more
Visit website
How to Use Enums in TypeScript for Cleaner Code
Geshan's Blog
by Geshan Manandhar
3M ago
TypeScript has emerged as a powerful tool that brings static typing to JavaScript, enhancing code maintainability and reducing bugs. One of TypeScript's features that significantly contributes to code clarity and organization is Enum, short for enumeration. In this blog post, you will learn more about Enums in TypeScript, why and how to use them, let’s get going! Table of contents # What are Enums Why Use TypeScript Enums Readability and Intention Code Maintainability Autocompletion Support Avoiding Magic Values How to Use Enums in TypeScript Example - Order Status Order Status with Numer ..read more
Visit website
2023 year in review: Blogging, public speaking, interviews, building communities, etc
Geshan's Blog
by Geshan Manandhar
4M ago
Like previous years, I would like to write a quick recap of the things I have done in 2023. Taking some time to reflect on the things achieved this year from a professional standpoint would be a great look back, let’s get started! Table of contents # Highlights Interviews for 2 podcasts Harka’s podcast Careersy podcast Blogging and writing in 2023 Geshan.com.np Most viewed blog posts of 2023 Traffic is down (thanks to LLMs, especially ChatGPT) Community building GDG Cloud Sydney Other GDG communities GDG Darwin GDG Canberra More coming soon Mentor at GDG Devfest Kathmandu Talks an ..read more
Visit website
Good software engineering is about finding a solution at the correct layer with boring technology
Geshan's Blog
by Geshan Manandhar
4M ago
In the ever-evolving landscape of technology, the importance of good software engineering cannot be overstated. It's the core of efficient, scalable, and maintainable software solutions. While there are various methodologies and practices, a key aspect often overlooked is the art of finding the right solution at the correct layer and level of abstraction. On top of that, reliable software systems are best built with boring technology. You will learn more about these topics in this post, let’s get started! Table of contents # Select the Right Layer for Your Solution Database vs. Code Code Lay ..read more
Visit website
How to write and deploy a basic Node.js API with Duet AI on VS Code a step-by-step guide
Geshan's Blog
by Geshan Manandhar
4M ago
As developers, we constantly dance between writing code, managing infrastructure, and keeping tabs on deployment and logs. Wouldn't having an AI teammate that simplifies these tasks be amazing? Duet AI is a Google AI tool that acts as your coding buddy and streamlines the development process, for most applications including Node.js. In this post, you will learn how to use Duet AI to write a simple Node.js API application and deploy it on Google Cloud Run. Install Duet AI on VS Code # You can install the Google Cloud Code (Duet AI) extension to VS Code or IntelliJ/JetBrains IDE. For this blog p ..read more
Visit website
Jest mock implementation: A beginner’s guide to replacing function implementation for tests
Geshan's Blog
by Geshan Manandhar
5M ago
Jest Mock Implementation is a technique that lets you replace the internal logic of a function with a custom implementation during test execution. This can be immensely helpful in scenarios where you want to isolate a specific piece of code for testing without affecting the behavior of other components. In this blog post, you will learn how to use Jest Mock Implementation and how to leverage it effectively. Let’s get started! Table of contents # Jest Mock implementation an intro When to use Jest mockImlementation How to use mockImplementation with Jest Example with Process exit and console T ..read more
Visit website

Follow Geshan's Blog on FeedSpot

Continue with Google
Continue with Apple
OR