Home – Datmt

  • How to Enable Spring Data MongoDB Auto Index Creation

    How to Enable Spring Data MongoDB Auto Index Creation

    Table of Contents1 Overview2 Enable auto index creation in MongoDB3 Conclusion Overview If you have tried setting auto-index-creation in spring data mongodb without success, like this: Then this post will show you how to work around this. Let’s get started. Enable auto index creation in MongoDB First, let’s consider this document Here, I defined an…

    Read More


  • How to fix Developer Error On Android Firebase Login

    How to fix Developer Error On Android Firebase Login

    Table of Contents1 Overview2 Get SHA1 of your application3 Add your key in firebase console4 Conclusion Overview Recently I had an issue with logging my users in my android app. The exception showed with error code 10. Here is the step by step to fix it. Get SHA1 of your application On your machine, run…

    Read More


  • Add CORS Configure For Spring Boot App

    Add CORS Configure For Spring Boot App

    Table of Contents1 Overview2 Create a CORS filter3 Configure the filter in your Security config4 Conclusion Overview When connecting from frontend to backend, you may encounter the infamous CORS error I will not explain to you what CORS error is (there are plenty of good resource for that). I only show you how to configure…

    Read More


  • Build Vite+React For Production With Nginx

    Table of Contents1 Overview2 How to fix axios error when running vite build3 Adding Dockerfile and nginx.conf4 Conclusion Overview Recently I struggled with building my new app with Vite+React for production. The issue was something to do with _global in the recent axios versions. When running npm run build So here is how I fixed…

    Read More


  • Using AI To Generate Git Commit Message For Free

    Using AI To Generate Git Commit Message For Free

    Table of Contents1 Overview2 Step by step to configure auto commit message2.1 Step 1: Create a Groq account and API key2.2 Step 2: Configure your GROQ_API_KEY environment variable2.3 Step 3: Create the script for prepare-commit-msg hook2.4 Skipping LLM3 Conclusion Overview Do you love writing commit messages? If so, you can return to your development now…

    Read More