{"id":24791500,"url":"https://github.com/sofyan48/nemo","last_synced_at":"2025-03-24T14:23:10.533Z","repository":{"id":57520696,"uuid":"246895905","full_name":"sofyan48/nemo","owner":"sofyan48","description":"CQRS EXAMPLE","archived":false,"fork":false,"pushed_at":"2020-03-29T10:37:52.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T14:07:48.754Z","etag":null,"topics":[],"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/sofyan48.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":"2020-03-12T17:41:58.000Z","updated_at":"2020-04-12T19:15:59.000Z","dependencies_parsed_at":"2022-09-05T09:41:40.712Z","dependency_job_id":null,"html_url":"https://github.com/sofyan48/nemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofyan48%2Fnemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofyan48%2Fnemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofyan48%2Fnemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofyan48%2Fnemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofyan48","download_url":"https://codeload.github.com/sofyan48/nemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245285684,"owners_count":20590456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-01-29T19:17:16.676Z","updated_at":"2025-03-24T14:23:10.511Z","avatar_url":"https://github.com/sofyan48.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nemo\n## Getting Started\nCQRS Example\n\n### Local Development\n\nFork this repo for your repo then clone in your local\n```\ngit clone https://github.com/sofyan48/boilerplate.git\n```\n\nGet Project Moduls\n\n```\ngo get github.com/sofyan48/nemo\n```\n\n#### Environment Setup\nFor Development Mode Setup dotenv\n```\ncp .env.example .env\n```\nSetting up your local configuration see example\n```\nSERVER_ADDRESS=0.0.0.0\nSERVER_PORT=3000\nSERVER_TIMEZONE=Asia/Jakarta\n\nDB_MYSQL_USERNAME=root\nDB_MYSQL_PASSWORD=password\nDB_MYSQL_HOST=localhost\nDB_MYSQL_PORT=3306\nDB_MYSQL_DATABASE=db\n```\n\nAfter environment setting then run your server\n\n```\ngo run src/main.go\n```\n\nfor building\n```\ngo build src/main.go\n```\n#### Live Reload\nTo activate Live Reload install air \n##### on macOS\n\n```\ncurl -fLo /usr/local/bin/air \\\n    https://raw.githubusercontent.com/cosmtrek/air/master/bin/darwin/air\nchmod +x /usr/local/bin/air\n```\n\n##### on Linux\n\n```\ncurl -fLo /usr/local/bin/air \\\n    https://raw.githubusercontent.com/cosmtrek/air/master/bin/linux/air\nchmod +x /usr/local/bin/air\n```\n\n##### on Windows\n\n```\ncurl -fLo ~/air.exe \\\n    https://raw.githubusercontent.com/cosmtrek/air/master/bin/windows/air.exe\n```\n\nsee watcher.conf setting watcher file for air config now\n\n##### Starting Live Reload\ngo to your project path\n```\nair -c watcher.conf\n```\n\n### Production Mode\n\n#### Dockerizing\nBuilding Image\n```\ndocker build -t boiler\n```\nEdit Environment In docker-compose.yml then Run Compose\n```\ndocker-compose up\n```\nStop Container\n```\ndocker-compose stop\n```\nRemove your container\n```\ndocker-compose rm -f\n```\n\n\n## How To Use\nSee the list below for instructions on how to use this boilerplate:\n**app/$version**\n1. ***Entity*** are a form of modeling of the REST API that you will create\n2. ***Repositories*** Is a connection model that you will use in a service that will be created later, the entity plays an important role for modeling data that will be stored in a database\n3. ***Service*** Is a logic process that you will create services can also be combined with business logic to facilitate you in managing all services so pay attention to the layering version of the service\n4. ***Controller*** an intermediary between routing and service controller regulates all input and input formats of the REST API that you will create\n5. ***Routing*** Routing is a mapping of the paths of the REST API that you have designed, routing is available on each controller version layering, this routing will be called on the router that has been created\n\nPlugins and utils are in the ***util*** folder all third-party packages that help you should be stored in this folder, you can choose whether the package is a middleware of your REST API or as a pure supporting utility\n\n\n## Documentation Format\n### Setup Swagger Docs\nSee Documentation \n[Swag Docs](https://github.com/swaggo/swag)\n\n## How To Contribute\nPlease refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the \"fork-and-pull\" Git workflow.\n 1. ***Fork*** the repo on GitHub\n 2. ***Clone*** the project to your own machine\n 3. ***Commit*** changes to your own branch\n 4. ***Push*** your work back up to your fork\n 5. Submit a ***Pull request*** so that we can review your changes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofyan48%2Fnemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofyan48%2Fnemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofyan48%2Fnemo/lists"}