initial commit

This commit is contained in:
2025-05-03 14:16:22 -06:00
commit cb08c08246
20 changed files with 311 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
*.beam
*.ez
/build
erl_crash.dump
+24
View File
@@ -0,0 +1,24 @@
# backend
[![Package Version](https://img.shields.io/hexpm/v/backend)](https://hex.pm/packages/backend)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/backend/)
```sh
gleam add backend@1
```
```gleam
import backend
pub fn main() {
// TODO: An example of the project in use
}
```
Further documentation can be found at <https://hexdocs.pm/backend>.
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
```
+19
View File
@@ -0,0 +1,19 @@
name = "backend"
version = "1.0.0"
# Fill out these fields if you intend to generate HTML documentation or publish
# your project to the Hex package manager.
#
# description = ""
# licences = ["Apache-2.0"]
# repository = { type = "github", user = "", repo = "" }
# links = [{ title = "Website", href = "" }]
#
# For a full reference of all the available options, you can have a look at
# https://gleam.run/writing-gleam/gleam-toml/.
[dependencies]
gleam_stdlib = ">= 0.44.0 and < 2.0.0"
[dev-dependencies]
gleeunit = ">= 1.0.0 and < 2.0.0"
+5
View File
@@ -0,0 +1,5 @@
import gleam/io
pub fn main() {
io.println("Hello from backend!")
}
+12
View File
@@ -0,0 +1,12 @@
import gleeunit
import gleeunit/should
pub fn main() {
gleeunit.main()
}
// gleeunit test functions end in `_test`
pub fn hello_world_test() {
1
|> should.equal(1)
}