Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nermalcat69/gleam-mist-pgo
Gleam with Mist + Pgo
https://github.com/nermalcat69/gleam-mist-pgo
gleam gleam-lang gluid pgo postgresql
Last synced: 18 days ago
JSON representation
Gleam with Mist + Pgo
- Host: GitHub
- URL: https://github.com/nermalcat69/gleam-mist-pgo
- Owner: nermalcat69
- License: mit
- Created: 2024-10-22T11:30:36.000Z (25 days ago)
- Default Branch: main
- Last Pushed: 2024-10-23T15:08:36.000Z (24 days ago)
- Last Synced: 2024-10-23T19:11:50.920Z (24 days ago)
- Topics: gleam, gleam-lang, gluid, pgo, postgresql
- Language: Gleam
- Homepage: https://pgo-ba-3000.prg1.zerops.app
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gleam Postgres Starter with Mist
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.
## Something you should know
- Gluid - for generating uuids
- Glenvy - used for accessing `.env` so that we can connect to db. I didnt use Envoy as it doesnt access my `.env` but access my shell environment so to connect i hade to use `export DATABASE_URL=url` Lol
- Mist - oh my a misty web server UwU## Development
```sh
gleam build # Builds the project
gleam run # Run the project
```## Deploying
you 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.