{"id":26842625,"url":"https://github.com/dtg-lucifer/go-ecommerce-server","last_synced_at":"2025-03-30T18:30:25.387Z","repository":{"id":259763317,"uuid":"879318543","full_name":"dtg-lucifer/go-ecommerce-server","owner":"dtg-lucifer","description":"Demo ecommerce backend with full fledged authentication with mysql and jwt","archived":false,"fork":false,"pushed_at":"2025-02-21T15:02:46.000Z","size":13346,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T16:22:27.305Z","etag":null,"topics":["backend","ecommerce","golang","jwt","mux-router"],"latest_commit_sha":null,"homepage":"","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/dtg-lucifer.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}},"created_at":"2024-10-27T15:41:53.000Z","updated_at":"2025-02-21T15:02:49.000Z","dependencies_parsed_at":"2024-10-27T22:33:42.647Z","dependency_job_id":"14c31f2d-531d-4259-a190-bbd203ebbc98","html_url":"https://github.com/dtg-lucifer/go-ecommerce-server","commit_stats":null,"previous_names":["dtg-lucifer/go-ecommerce-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtg-lucifer%2Fgo-ecommerce-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtg-lucifer%2Fgo-ecommerce-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtg-lucifer%2Fgo-ecommerce-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtg-lucifer%2Fgo-ecommerce-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtg-lucifer","download_url":"https://codeload.github.com/dtg-lucifer/go-ecommerce-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246363149,"owners_count":20765224,"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":["backend","ecommerce","golang","jwt","mux-router"],"created_at":"2025-03-30T18:30:24.661Z","updated_at":"2025-03-30T18:30:25.365Z","avatar_url":"https://github.com/dtg-lucifer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GO Ecommerce Server\n\nThis is a pretty simple backend for an Ecommerce site. This is made with Go lang and built with **Std** library and **Mux** router.\n\nNote: This repository is a good starting point for anyone who wants to transition from a library based language like Node.js or Python to something barebon like Go or Rust, where they dont need anything more that the **std** library.\n\n---\n\n## Features\n- Full Fledged token based authentication (JWT)\n- Full CRUD for Products and User accounts\n- Mysql database handling with raw SQL queries\n- Migration Sql scripts\n- Followed by the best architecture from the trending projects.\n\n---\n\n## Endpoints\n\n#### Users\n\n#### Products\nGET - /api/v1/products (Get all products)\n\nPOST - /api/v1/products (create product, NOTE - Requires the JWT token to be passed as well in the headers)\n```bash\ncurl -X POST http://localhost:8080/api/v1/products \\\n     -H \"Content-Type: application/json\" \\\n     -H \"Authorization: JWT_TOKEN\" \\\n     -d '{\"name\": \"Demo\", \"description\": \"Demo description for the demo product\", \"image\": \"\", \"price\": 69.00, \"quantity\": 5 }\n```\n---\n\n~ Piush - Copyright 2025\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtg-lucifer%2Fgo-ecommerce-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtg-lucifer%2Fgo-ecommerce-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtg-lucifer%2Fgo-ecommerce-server/lists"}