First Steps with Gleam: Building a Simple Web App (Rest API with PostgreSQL)
4 months ago
- #Gleam
- #Web Development
- #PostgreSQL
- Introduction to building a web app with Gleam, REST APIs, and PostgreSQL.
- Setting up the development environment on macOS using homebrew.
- Using Zed as a fast and efficient editor for Gleam projects.
- Overview of Gleam language features: immutability, strong typing, and error handling.
- Using the Gleam CLI tool for project management and dependency handling.
- Creating a web server with Wisp framework and handling basic routes.
- Adding REST CRUD API endpoints for a Todo application.
- Implementing JSON support for request and response handling.
- Setting up PostgreSQL with Docker Compose for database backend.
- Using Squirrel library for type-safe SQL queries in Gleam.
- Integrating the database into the web application with connection pooling.
- Creating HTML views with Lustre for the frontend.
- Final thoughts on learning Gleam and areas for improvement.