{"id":15154469,"url":"https://github.com/fabianoleittes/code-challenge-levee","last_synced_at":"2026-02-01T22:31:21.861Z","repository":{"id":54575307,"uuid":"334478836","full_name":"fabianoleittes/code-challenge-levee","owner":"fabianoleittes","description":":mortar_board:   Backend Engineer Code Challenge - Levee","archived":false,"fork":false,"pushed_at":"2021-02-10T18:23:43.000Z","size":71,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T02:44:50.069Z","etag":null,"topics":["clean-architecture","clean-code","cleanarchitecture","docker","gin-gonic","go","golang","gorilla-mux","jwt-authentication","logrus","mongodb","mongodb-database","postgresql","restful-api","zap"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabianoleittes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-30T18:04:13.000Z","updated_at":"2021-12-25T06:02:12.000Z","dependencies_parsed_at":"2022-08-13T20:10:49.682Z","dependency_job_id":null,"html_url":"https://github.com/fabianoleittes/code-challenge-levee","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fabianoleittes/code-challenge-levee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabianoleittes%2Fcode-challenge-levee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabianoleittes%2Fcode-challenge-levee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabianoleittes%2Fcode-challenge-levee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabianoleittes%2Fcode-challenge-levee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabianoleittes","download_url":"https://codeload.github.com/fabianoleittes/code-challenge-levee/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabianoleittes%2Fcode-challenge-levee/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28993252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T22:01:47.507Z","status":"ssl_error","status_checked_at":"2026-02-01T21:58:37.335Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["clean-architecture","clean-code","cleanarchitecture","docker","gin-gonic","go","golang","gorilla-mux","jwt-authentication","logrus","mongodb","mongodb-database","postgresql","restful-api","zap"],"created_at":"2024-09-26T17:40:27.930Z","updated_at":"2026-02-01T22:31:21.844Z","avatar_url":"https://github.com/fabianoleittes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n   \u003ca href=\"#\"\u003e Code challenge Levee API \u003c/a\u003e\n\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003e\n    Backend Engineer Code Challenge - Levee\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n\n\u003cimg alt=\"Testing\" src=\"https://github.com/fabianoleittes/code-challenge-levee/workflows/Tests%20\u0026%20Linters/badge.svg?branch=main\"\u003e\n\n  \u003cimg alt=\"GitHub language count\" src=\"https://img.shields.io/github/languages/count/fabianoleittes/code-challenge-levee?color=%2304D361\"\u003e\n\n  \u003cimg alt=\"Repository size\" src=\"https://img.shields.io/github/repo-size/fabianoleittes/code-challenge-levee\"\u003e\n\n  \u003ca href=\"https://github.com/fabianoleittes/code-challenge-levee/commits/main\"\u003e\n    \u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/fabianoleittes/code-challenge-levee\"\u003e\n  \u003c/a\u003e\n\n   \u003cimg alt=\"License\" src=\"https://img.shields.io/badge/license-MIT-brightgreen\"\u003e\n   \u003ca href=\"https://github.com/fabianoleittes/code-challenge-levee/stargazers\"\u003e\n    \u003cimg alt=\"Stargazers\" src=\"https://img.shields.io/github/stars/fabianoleittes/code-challenge-levee?style=social\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n\u003ch4 align=\"center\"\u003e\n\t Status: WIP\n\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n \u003ca href=\"#about\"\u003eAbout\u003c/a\u003e •\n \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e •\n \u003ca href=\"#how-it-works\"\u003eHow it works\u003c/a\u003e •\n \u003ca href=\"#tech-stack\"\u003eTech Stack\u003c/a\u003e •\n \u003ca href=\"#author\"\u003eAuthor\u003c/a\u003e •\n \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\n\n\u003c/p\u003e\n\n## About\n\nThis project is a simple API for some `Job` routines, such as creating, listing, and activate.\n\n---\n\n## Features\n\n- [x] Create job\n- [x] List the all jobs\n- [ ] Activate the status for a specific job\n- [ ] List the percentage and number of active jobs by category.\n- [ ] JWT Token Based Authentication\n- [x] API versioning\n- [x] JSON Schema implementation\n- [x] Setup scripts\n\n---\n\n## How it works\n\nThis project is Restful API:\n1. Backend\n\n\n### Pre-requisites\n\nBefore you begin, you will need to have the following tools installed on your machine:\n[docker](https://docs.docker.com/install/), [docker compose](https://docs.docker.com/compose/install/), [Git](https://git-scm.com).\n\nIn addition, it is good to have an editor to work with the code like [VSCode](https://code.visualstudio.com/)\n\n#### Running the Backend (server)\n\n```bash\n\n# Clone this repository\n$ git clone https://github.com/fabianoleittes/code-challenge-levee\n\n# Access the project folder cmd/terminal\n$ cd code-challenge-levee\n\n# Environment variables\n$ make init\n\n# Run the application in development mode\n$ make up\n\n# The server will start at port: 3001 - go to http://localhost:3001\n\n# Run tests in container\n$ make test\n\n# View logs\n$ make logs\n```\n\n#### API Request\n\n Endpoint        | HTTP Method           | Description       |\n| --------------- | :---------------------: | :-----------------: |\n| `/v1/jobs` | `POST`                | `Create jobs` |\n| `/v1/health`| `GET`                 | `Health check`  |\n---\n\n## Test endpoints `API` using curl\n\n- #### Creating new job\n\n`Request`\n```bash\ncurl -i --request POST 'http://localhost:3001/v1/jobs' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n   \"partner_id\": \"1\",\n    \"title\": \"Sr Ruby Dev\",\n    \"category_id\": \"1\",\n    \"expires_at\": \"2021-02-15\"\n}'\n```\n\n`Response`\n```json\n{\n   \"id\":\"68de685e-3a37-431f-ba6b-dcd0076e5138\",\n   \"partner_id\":\"1\",\n   \"title\":\"Sr Ruby Dev\",\n   \"status\":\"draft\",\n   \"category_id\": \"1\",\n   \"expires_at\":\"2021-02-15T14:50:46Z\",\n   \"created_at\":\"2021-02-08T14:50:46Z\"\n}\n```\n\n## Tech Stack\n\nThe following tools were used in the construction of the project:\n\n#### **API**  ([Golang](https://golang.org/))\n\n-   **[Gorilla/mux](https://github.com/gorilla/mux)**\n-   **[Gin Web Framework](https://github.com/gin-gonic/gin)**\n-   **[PostgreSQL](https://www.postgresql.org/)**\n-   **[MongoDB](https://www.mongodb.com/)**\n\n**Utilities**\n\n\n-   Commit Conventional:  **[Commitlint](https://github.com/conventional-changelog/commitlint)**\n-   API Test:  **[Insomnia](https://insomnia.rest/)**\n---\n\n\n## How to contribute\n\n1. Fork the project.\n2. Create a new branch with your changes: `git checkout -b my-feature`\n3. Save your changes and create a commit message telling you what you did: `git commit -m\" feature: My new feature \"`\n4. Submit your changes: `git push origin my-feature`\n\u003e If you have any questions check this [guide on how to contribute](./CONTRIBUTING.md)\n\n---\n\n## Author\n\n\u003ca href=\"https://fabianoleittes.me/\"\u003e\n \u003cimg style=\"border-radius: 50%;\" src=\"https://avatars3.githubusercontent.com/u/279344?v=4\" width=\"100px;\" alt=\"\"/\u003e\n \u003cbr /\u003e\n \u003csub\u003e\u003cb\u003eFabiano Leite\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\n \u003cbr /\u003e\n\n[![Twitter Badge](https://img.shields.io/badge/-@fabianoleittes-1ca0f1?style=flat-square\u0026labelColor=1ca0f1\u0026logo=twitter\u0026logoColor=white\u0026link=https://twitter.com/fabianoleittes)](https://twitter.com/fabianoleittes) [![Linkedin Badge](https://img.shields.io/badge/-Fabiano-blue?style=flat-square\u0026logo=Linkedin\u0026logoColor=white\u0026link=https://www.linkedin.com/in/fabianoleittes/)](https://www.linkedin.com/in/fabianoleittes/)\n\n---\n\n## License 📝\n\nThis project is under the license [MIT](./LICENSE).\n\n##### Made with love by Fabiano Leite 👋🏽 [Get in Touch!](Https://www.linkedin.com/in/fabianoleittes/)\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabianoleittes%2Fcode-challenge-levee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabianoleittes%2Fcode-challenge-levee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabianoleittes%2Fcode-challenge-levee/lists"}