This is a simple, basic Gleam mist application, each request adds an entry with a UUID(using gluid) to the PostgreSQL database and returns a count.
- Gluid - for generating uuids
- Glenvy - used for accessing
.envso that we can connect to db. I didnt use Envoy as it doesnt access my.envbut access my shell environment so to connect i hade to useexport DATABASE_URL=urlLol - Mist - oh my a misty web server UwU
gleam build # Builds the project
gleam run # Run the projectyou can use zerops-project-import.yml from the codebase to import this project to your zerops dashboard.
This is my first gleam code i wrote while taking some help from their discord server and making silly dumb mistakes DIDNT KNOW WHAT I WAS DOING AT FIRST. Also going through the packages docs on Hex hahaha.