{"id":18103495,"url":"https://github.com/marco-souza/m3o","last_synced_at":"2026-04-27T16:33:50.986Z","repository":{"id":94192512,"uuid":"535831215","full_name":"marco-souza/m3o","owner":"marco-souza","description":"PocketBase Fullstack Framework","archived":false,"fork":false,"pushed_at":"2025-07-29T23:09:40.000Z","size":16384,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T01:00:08.490Z","etag":null,"topics":["daisy-ui","datastar","golang","pocketbase","tailwindcss","templ"],"latest_commit_sha":null,"homepage":"https://m3o.deno.dev","language":"templ","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/marco-souza.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-12T20:01:36.000Z","updated_at":"2025-07-29T23:09:43.000Z","dependencies_parsed_at":"2025-03-10T18:35:49.551Z","dependency_job_id":"eb213391-a6b3-4b1b-94d4-1320b4e5a633","html_url":"https://github.com/marco-souza/m3o","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marco-souza/m3o","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-souza%2Fm3o","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-souza%2Fm3o/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-souza%2Fm3o/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-souza%2Fm3o/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marco-souza","download_url":"https://codeload.github.com/marco-souza/m3o/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-souza%2Fm3o/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32345805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["daisy-ui","datastar","golang","pocketbase","tailwindcss","templ"],"created_at":"2024-10-31T22:12:19.707Z","updated_at":"2026-04-27T16:33:50.975Z","avatar_url":"https://github.com/marco-souza.png","language":"templ","funding_links":[],"categories":[],"sub_categories":[],"readme":"# m3o\n\n[![Go Version](https://img.shields.io/github/go-mod/go-version/marco-souza/m3o)](https://golang.org/)\n[![License](https://img.shields.io/github/license/marco-souza/m3o)](LICENSE)\n[![Powered by PocketBase](https://img.shields.io/badge/powered%20by-PocketBase-blue.svg)](https://pocketbase.io/)\n\nThis is a [PocketBase](https://pocketbase.io/) project called `m3o`.\n\n## Features\n\n- **PocketBase Backend**: A complete backend in a single file.\n- **Custom `/hello` Endpoint**: A simple endpoint that returns \"Hello world!\".\n- **Custom `hello` CLI Command**: A command that prints \"Hello from CLI\".\n- **Cron Job**: A cron job that prints \"Hello!\" every 2 minutes.\n- **Static File Serving**: Serves static files from the `pb_public` directory.\n\n## Getting Started\n\n### Prerequisites\n\n- [Go](https://golang.org/doc/install)\n- [Docker](https://docs.docker.com/get-docker/) (optional)\n\n### Running with Go\n\n1.  **Clone the repository:**\n\n    ```bash\n    git clone https://github.com/marco-souza/m3o.git\n    cd m3o\n    ```\n\n2.  **Install dependencies:**\n\n    ```bash\n    go mod tidy\n    ```\n\n3.  **Run the application:**\n\n    ```bash\n    go run main.go serve\n    ```\n\n### Running with Docker\n\n1.  **Build the Docker image:**\n\n    ```bash\n    docker build -t m3o .\n    ```\n\n2.  **Run the Docker container:**\n\n    ```bash\n    docker run -p 8080:8080 m3o\n    ```\n\n## Usage\n\n- **API Endpoint**: Access the `/hello` endpoint at `http://localhost:8080/hello`.\n- **CLI Command**: Run the `hello` command with `go run main.go hello`.\n\n## Stack\n\nThis project uses:\n\n- **Go**: The primary programming language.\n- **PocketBase**: As the backend framework.\n- **Node.js**: For dependency management and running scripts.\n- **Lefthook**: For git hooks management.\n- **Prettier**: To format markdown files.\n\n## Development\n\nTo contribute to this project, you need to have the following installed:\n\n- [Go](https://golang.org/doc/install)\n- [Node.js](https://nodejs.org/en/download/) (which includes `npx`)\n\nTo ensure code quality and consistency, this project uses [Lefthook](https://github.com/evilmartians/lefthook) to manage git hooks.\n\nTo get started, install our dependencies:\n\n```bash\ngo install github.com/evilmartians/lefthook@latest\n```\n\nThen, install the git hooks:\n\n```bash\nlefthook install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarco-souza%2Fm3o","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarco-souza%2Fm3o","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarco-souza%2Fm3o/lists"}