{"id":30692049,"url":"https://github.com/martcpp/productman","last_synced_at":"2025-09-02T04:47:27.458Z","repository":{"id":312726509,"uuid":"1048520026","full_name":"martcpp/productman","owner":"martcpp","description":"a product management api with axum and admin control","archived":false,"fork":false,"pushed_at":"2025-09-01T15:33:43.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-01T17:29:44.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/martcpp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-01T15:14:25.000Z","updated_at":"2025-09-01T15:33:46.000Z","dependencies_parsed_at":"2025-09-01T17:39:56.373Z","dependency_job_id":null,"html_url":"https://github.com/martcpp/productman","commit_stats":null,"previous_names":["martcpp/productman"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/martcpp/productman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martcpp%2Fproductman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martcpp%2Fproductman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martcpp%2Fproductman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martcpp%2Fproductman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martcpp","download_url":"https://codeload.github.com/martcpp/productman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martcpp%2Fproductman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273233274,"owners_count":25068731,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-09-02T04:47:26.584Z","updated_at":"2025-09-02T04:47:27.445Z","avatar_url":"https://github.com/martcpp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# productman\na product management api with axum and admin control\n\n\n# Application Setup Guide\n\n## Project Overview\n\nThis application consists of:\n- **Backend**: Axum (Rust web framework) have rust install\n- **Database**: PostgreSQL with SQLx have sqlx install\n\n---\n\n## Backend Setup\n\n### 1. Navigate to Backend Directory\n```bash\ncd test3/backend/src\n```\n\n### 2. Environment Configuration\n- Copy `.env_example` to `.env`\n- Update database credentials and admin settings in `.env`\n\n### 3. Database Setup\n\n#### Install SQLx CLI\n```bash\ncargo install sqlx-cli\n```\n\n#### Create Database\nensure your .env is set up with DATABASE_URL if not error\n```bash \nsqlx database create\n```\n\n#### Run Migrations\n```bash\nsqlx migrate run\n```\n\n### 4. Create Admin User\n```bash\ncargo run --bin admin\n```\n\n### 5. Start the Server\n```bash\ncargo run --bin start\n```\n\n### 6. Test the API\nThe server runs on `localhost:3000` by default.\n\n**Option 1: Postman Collection**\n- Import the Postman collection file: `E-commerce Catalog API.postman_collection.json` (located in root directory of project )\n\n**Option 2: Online Postman Workspace**\n- [Access the Postman workspace](https://web.postman.co/workspace/online-pastor~2ba54e12-d0fd-4992-a4b4-9110b0e0ea4b/collection/29491484-2e4ac831-8696-439b-acad-b56ca8fa8fdd?action=share\u0026source=copy-link\u0026creator=29491484)\n- \n### usage\n\nnote to login as admin us the details use provided in your .env or use the app default\nemail == adminm@example.com\npasswrod == adminpassword\n\n\n## Improvement that can be done\n\n### Backend Improvements\n- **Error Handling**: Better error handling for edge cases\n- **Search System**: More effective and optimized search functionality\n- **Code Organization**: Move routers to separate files (currently in main.rs)\n- **Testing**: Comprehensive test coverage for all API endpoints (Postman collection provides good coverage)\n- **Containerization**: Dockerize the application for easier deployment\n- **API Documentation**: Add Swagger API documentation (though less critical for internal APIs with Postman available)\n- ** add supperusers so changing roles or creating admin can be easy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartcpp%2Fproductman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartcpp%2Fproductman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartcpp%2Fproductman/lists"}