Before we go further and learn more about the Hono framework, the one thing that is bothering me is database credentials written in code. We should adjust the existing code by removing the credentials from the code and put it within the .env
file. We should never hard-code the secret(s) as per 12factor app.
Kiran Chauhan
Technology, Politics, and Folk Literature
Hono Tutorial Pt. 3 (2024)
Aug 7, 2024Hono Tutorial Pt. 2 (2024)
Aug 6, 2024In this article, we are going to connect the database in Hono application. For the purpose of demonstration, we are going to use PostgreSQL database and postgres as npm package. You are free to use any other package and database as steps will be similar except you need to consult the respected documentation for initial setup.
Phoenix Framework Pt. 3 (2024)
Aug 5, 2024The routes of the application are defined within the lib/hello_web/router.ex
file. In this file, look for the following code snippet.
Phoenix Framework Pt. 2 (2024)
Aug 4, 2024In this article, I am going to briefly explain to you the purpose of a few files and folders present in this hello
Phoenix project. This will be brief. Because, as you start to become familiar with Phoenix projects, it will become second nature to you.
Phoenix Framework Pt. 1 (2024)
Aug 3, 2024This article assumes that you already know Elixir programming language. Further, following are the software you have on your computer.
Hono Tutorial Pt. 1 (2024)
Aug 2, 2024This is the first article in a series where we are going to build a simple back-end application in Hono in Node.js environment.