{"id":13714280,"url":"https://github.com/paw1a/ecommerce-api","last_synced_at":"2026-01-14T16:35:13.418Z","repository":{"id":52450579,"uuid":"443611387","full_name":"paw1a/ecommerce-api","owner":"paw1a","description":"Rest api of e-commerce web application","archived":false,"fork":false,"pushed_at":"2022-06-05T15:42:48.000Z","size":3820,"stargazers_count":34,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T01:40:46.276Z","etag":null,"topics":["api","ecommerce","gin","go","jwt","react","rest","rest-api","swagger"],"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/paw1a.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}},"created_at":"2022-01-01T19:44:21.000Z","updated_at":"2025-04-11T09:14:36.000Z","dependencies_parsed_at":"2022-09-11T22:01:01.650Z","dependency_job_id":null,"html_url":"https://github.com/paw1a/ecommerce-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paw1a/ecommerce-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paw1a%2Fecommerce-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paw1a%2Fecommerce-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paw1a%2Fecommerce-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paw1a%2Fecommerce-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paw1a","download_url":"https://codeload.github.com/paw1a/ecommerce-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paw1a%2Fecommerce-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28426103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:32:27.303Z","status":"ssl_error","status_checked_at":"2026-01-14T16:28:36.419Z","response_time":107,"last_error":"SSL_read: 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":["api","ecommerce","gin","go","jwt","react","rest","rest-api","swagger"],"created_at":"2024-08-02T23:01:56.221Z","updated_at":"2026-01-14T16:35:13.401Z","avatar_url":"https://github.com/paw1a.png","language":"Go","readme":"# E-commerce Rest API\n\nAPI for web stores to sell different types of products. Integrated with payment system Stripe. Also has admin dashboard.\n\n![Preview](docs/Preview.jpg)\n\n### [Swagger API documentation](https://app.swaggerhub.com/apis-docs/paw1a/E-commerce)\n\n# Contents\n\n1. [Run](#Run)\n2. [API](#API)\n3. [Implementation](#Implementation)\n\n# Run\n\nTo run application you need:\n- docker-compose\n- .env file\n\n## Env configuration\n\nTo run API locally you should create your own .env file in the root directory or rename `.env-example` to `.env`  \nExample `.env`:\n\n```env\nHOST=localhost\nPORT=8080\n\nSTRIPE_KEY=\u003cyour stripe key\u003e\n\nJWT_SECRET=jwtSecret\n\nDB_NAME=ecommerce\nDB_URI=mongodb://mongo:27017\nDB_USERNAME=\nDB_PASSWORD=\n\nTEST_DB_NAME=ecommerce-test\nTEST_DB_URI=mongodb://localhost:27017\nTEST_DB_USERNAME=\nTEST_DB_PASSWORD=\n\nREDIS_URI=redis:6379\n```\n\n## Local run\n\n```\nmake run\n```\n\nor\n\n```\ndocker-compose up\n```\n\nRun test data generation for MongoDB\n\n```\nmake init\n```\n\nRun frontend only\n\n```\ndocker-compose up frontend\n```\n\n# API\n\nBase url: `\u003chost\u003e:8080/api/v1/`\n\nAPI documentation can be found [here](https://app.swaggerhub.com/apis-docs/paw1a/E-commerce)\n\n# Implementation\n\n- REST API\n- Clean architecture design\n- Using MongoDB as a main data storage\n- Using Redis for cache and user session storage\n- Env based application configuration\n- Automatically generated Swagger API docs\n- Run with docker-compose\n- Full automated CI/CD process\n- Configured deploy to AWS\n- React.js frontend (*in progress*)\n- Stripe API payment integration\n\n### Project structure\n\n```\n.\n├── .bin            // app binary files\n├── .data           // directory to store local db data\n├── .github         // github actions ci/cd directory\n├── cmd             // entry point\n├── db              // db generation scripts for mongo\n├── deploy          // deploy docker files \n├── docs            // swagger docs and readme images\n├── frontend        // react.js app directory\n├── internal\n│   ├── app         // main application package\n│   ├── config      // config loading utils\n│   ├── delivery    // http handlers layer\n│   ├── domain      // all business entities and dto's\n│   ├── repository  // database repository layer\n│   └── service     // business logic services layer\n├── pkg\n│   ├── auth        // jwt auth utils\n│   ├── database    // database connection utils\n│   ├── logging     // logger configuration\n│   └── payment     // payment service configuration\n└─\n```\n\n# Diagram\n![image not found](docs/E-commerce%20API%20diagram.png)\n","funding_links":[],"categories":["Repositories"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaw1a%2Fecommerce-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaw1a%2Fecommerce-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaw1a%2Fecommerce-api/lists"}