{"id":15295791,"url":"https://github.com/le4ndro/gowt","last_synced_at":"2025-05-07T04:24:58.532Z","repository":{"id":46141305,"uuid":"168602562","full_name":"le4ndro/gowt","owner":"le4ndro","description":"Sample crud web application project using Golang(http, templates, os, sql), Bootstrap 4, DataTables, MySQL.","archived":false,"fork":false,"pushed_at":"2021-08-16T13:37:55.000Z","size":13,"stargazers_count":11,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T18:30:57.826Z","etag":null,"topics":["bootstrap4","golang","jquery","mysql-database","templates","webapp"],"latest_commit_sha":null,"homepage":"https://github.com/le4ndro/gowt","language":"HTML","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/le4ndro.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":"2019-01-31T21:51:10.000Z","updated_at":"2025-02-24T12:36:08.000Z","dependencies_parsed_at":"2022-09-26T21:22:02.461Z","dependency_job_id":null,"html_url":"https://github.com/le4ndro/gowt","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/le4ndro%2Fgowt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le4ndro%2Fgowt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le4ndro%2Fgowt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le4ndro%2Fgowt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/le4ndro","download_url":"https://codeload.github.com/le4ndro/gowt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252811614,"owners_count":21807977,"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":["bootstrap4","golang","jquery","mysql-database","templates","webapp"],"created_at":"2024-09-30T18:08:13.020Z","updated_at":"2025-05-07T04:24:58.482Z","avatar_url":"https://github.com/le4ndro.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GOWT\nSample crud web application project using Golang(http, templates, os, sql), Bootstrap 4, DataTables, MySQL, Docker.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Prerequisites\n\nWhat things you need to install the software\n\n* Golang, preferably the latest version (1.16).\n* MySQL Database\n* Docker (optional)\n\n### Installing\n\n1. Clone this repository\n\n```\ngit clone https://github.com/le4ndro/gowt.git\ncd gowt\n```\n\n2. Run below command and install dependencies\n\n```\ngo mod download\n```\n\n3. Create database on MySQL\n\n```\nCREATE DATABASE gowtdb CHARACTER SET utf8 COLLATE utf8_unicode_ci;\n\nUSE gowtdb;\n\nCREATE TABLE tools (\n  id int(11) NOT NULL AUTO_INCREMENT,\n  name varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL,\n  category varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL,\n  url varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,\n  rating int(11) DEFAULT NULL,\n  notes text COLLATE utf8_unicode_ci,\n  PRIMARY KEY (id)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n```\n\n4. Create a .env file with the variables listed bellow and change values as needed\n\n```\nDATABASE_NAME=\"gowtdb\"\nDATABASE_USERNAME=\"user\"\nDATABASE_PASSWORD=\"pass\"\nDATABASE_SERVER=\"localhost\"\nDATABASE_PORT=\"3306\"\n```\n\n6. Run the application\n\n```\nmake run\n```\n\n## Deployment\n\n1. Create an executable\n\n```\nmake build\n```\n\n2. Run the application\n\n```\n./out/bin/gowt\n\\out\\bin\\main.exe (Windows)\n```\n## Create Docker image\n\n1. To build and tag your image locally\n\n```\nmake docker-build\n```\n\n2. To push your image to registry\n\n```\nmake docker-release\n```\n\n## Run Docker image locally\n\n```\nmake docker-run\n```\n\n\n## Built With\n\n* [Golang](https://golang.org/doc/) - The programming language \n* [Bootstrap 4](https://getbootstrap.com/docs/4.2/getting-started/introduction/) - Html framework\n* [jQuery](https://api.jquery.com/) - Javascript library\n* [DataTables](https://datatables.net/manual/) - Advanced tables - Plug-in for jQuery\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).\n\n## Authors\n\n* **Leandro Souza** - *Initial work*\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n\n* This project is in development\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fle4ndro%2Fgowt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fle4ndro%2Fgowt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fle4ndro%2Fgowt/lists"}