{"id":39158839,"url":"https://github.com/raggaer/bison","last_synced_at":"2026-01-17T22:00:53.806Z","repository":{"id":59144553,"uuid":"142501343","full_name":"Raggaer/bison","owner":"Raggaer","description":"Make websites using lua","archived":false,"fork":false,"pushed_at":"2020-09-06T20:22:50.000Z","size":432,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-12T00:19:26.838Z","etag":null,"topics":["go","go-lua","golang","http","lua"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Raggaer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-26T22:45:04.000Z","updated_at":"2024-07-09T09:50:55.000Z","dependencies_parsed_at":"2022-09-13T02:12:24.968Z","dependency_job_id":null,"html_url":"https://github.com/Raggaer/bison","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Raggaer/bison","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raggaer%2Fbison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raggaer%2Fbison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raggaer%2Fbison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raggaer%2Fbison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Raggaer","download_url":"https://codeload.github.com/Raggaer/bison/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raggaer%2Fbison/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28519276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","go-lua","golang","http","lua"],"created_at":"2026-01-17T22:00:52.957Z","updated_at":"2026-01-17T22:00:53.795Z","avatar_url":"https://github.com/Raggaer.png","language":"Go","readme":"# bison\n\nBuild websites using lua. \n**bison** uses [gopher-lua](https://github.com/yuin/gopher-lua) to parse http requests and [Go](https://golang.org/) for the http server and the templating\nThis provides an easy way to create websites (using a simple language like **lua**) with great tools from a more complex language (templating, logging)\n\n## Config\n\nTo handle all your configuration values `bison` uses a `config.lua` file (should be located at `app/config`). This file is a simple lua table:\n\n```lua\nlocal config = {\n  address = ':0',\n  devMode = false,\n  myTestKey = 'testing-bison'\n}\n\n-- Always return the config table\nreturn config\n```\nThere are some **mandatory** fields that need to be present on your configuration file:\n\n- `address`: The address where the http server will listen on\n- `devMode`: Development mode boolean, if enabled some features (like hot-reload lua files) will be activated, to make development easier\n\nAfter the mandatory fields are all setup you can declare any field (even use tables) and access them later using the `config` module \non your lua files\n\n## Router\n\n`bison` uses a `router.lua` file (should be located at `app/router`) to handle all the request routing. The router file follows this simple structure:\n\n```lua\nlocal router = {\n  ['/test/:name'] = {\n    get = 'test.lua',\n    post = 'post_test.lua'\n  }\n}\n\n-- Always return the router table\nreturn router\n```\n\nYou first specify a route (you can use named parammeters like `:name` on the example), \neach route has a table with the http method and the controller (lua files inside the `controllers` directory)\nthat should be executed\n\n## Testing\n\nAll the testing is done on the `test` folder, where a simple example of how `bison` works is located. Every lua module is tested, on each test a fasthttp server is created with a random port.\nThen a request is simulated using `net/http` package\n\nSince the testing package is basically a `bison` application, it can be used as a base/example on how should your directory structure look like\n\n## Example\n\nYou can find a complete of how to make an application using `bison` on the `example` directory.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraggaer%2Fbison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraggaer%2Fbison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraggaer%2Fbison/lists"}