{"id":50155886,"url":"https://github.com/ajikamaludin-dev/api-raya-ojt","last_synced_at":"2026-05-24T11:08:34.817Z","repository":{"id":49355789,"uuid":"517471628","full_name":"ajikamaludin-dev/api-raya-ojt","owner":"ajikamaludin-dev","description":"simple rest for on job training i crate for demo project","archived":false,"fork":false,"pushed_at":"2022-07-28T08:36:08.000Z","size":710,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2026-04-07T09:40:22.534Z","etag":null,"topics":["fiber","go-redis","golang","gorm","pubsub"],"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/ajikamaludin-dev.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-07-25T00:44:18.000Z","updated_at":"2023-05-25T06:58:46.000Z","dependencies_parsed_at":"2022-09-24T12:11:25.549Z","dependency_job_id":null,"html_url":"https://github.com/ajikamaludin-dev/api-raya-ojt","commit_stats":null,"previous_names":["19ajikamaludin/api-raya-ojt","ajikamaludin-dev/api-raya-ojt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajikamaludin-dev/api-raya-ojt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajikamaludin-dev%2Fapi-raya-ojt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajikamaludin-dev%2Fapi-raya-ojt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajikamaludin-dev%2Fapi-raya-ojt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajikamaludin-dev%2Fapi-raya-ojt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajikamaludin-dev","download_url":"https://codeload.github.com/ajikamaludin-dev/api-raya-ojt/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajikamaludin-dev%2Fapi-raya-ojt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33431100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"online","status_checked_at":"2026-05-24T02:00:06.296Z","response_time":57,"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":["fiber","go-redis","golang","gorm","pubsub"],"created_at":"2026-05-24T11:08:33.855Z","updated_at":"2026-05-24T11:08:34.809Z","avatar_url":"https://github.com/ajikamaludin-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Raya OJT\n\n## Requirement \n\nInstalled Go \n```bash\n$ go version\ngo version go1.18.4 linux/amd64\n```\n\nCreate a postgresql database\n```sql\nCREATE DATABASE api_raya_ojt\n```\n\n## Setup Project\n\nClone Project \n```bash\ngit clone https://github.com/ajikamaludin/api-raya-ojt\ncd api-raya-ojt\n```\n\nRun Install Depedency\n```bash\ngo mod tidy\n```\n\nCreate env file\n```bash\ncp .env.example .env\n```\n\nEdit `.env` file change your database connection, redis connection and google cloud credentials \n```\nAPP_NAME=note-app\nAPP_ENV=dev\nAPP_PORT=3000\n\nDB_NAME=test\nDB_HOST=localhost\nDB_PORT=5432\nDB_USER=aji\nDB_PASS=eta\nDB_TIMEZONE=Asia/Jakarta\nDB_ISMIGRATE=true\n\nJWT_SECRET=IyMjIEdvIEZpYmVyIChCYXNpYyBTZXR1cCk.\nJWT_EXPIRED_SECOND=3600\n\nREDIS_HOST=localhost\nREDIS_PORT=6379\nREDIS_PASSWORD=\n\nGOOGLE_PROJECT_NAME=project-name\nGOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json\n```\n\nRun Rest Api Project (Keep Running) (Automated Migrate Database and Seed)\n```bash\ngo run .\n```\n\nRun Service Transaction (Keep Running)\n```bash\ngo run services/main.go\n```\n## REST Api docs\n[Postman Collection](https://raw.githubusercontent.com/ajikamaludin/api-raya-ojt/dev/assets/postman/ApiRaya.Postman_collection.json)\n\n[Postman Environment](https://raw.githubusercontent.com/ajikamaludin/api-raya-ojt/dev/assets/postman/ApiRaya.Postman_environment.json)\n\nPublic Api Doc : https://documenter.getpostman.com/view/1829038/UzXM1JEa\n\n![run results](https://github.com/ajikamaludin/api-raya-ojt/raw/dev/assets/results.png)\n## Code overview\n\n### Folders\n\n- `app/models` - Contains all the GORM models and models for request and response\n- `app/controllers` - Contains all the controllers\n- `app/configs` - Contains all the application configuration files\n- `app/repository` - Contains all function to access database layer and redis \n- `app/services/services.go` - Contains all package/service use by app to interact\n- `pkg/` - Contains all third party librari to access service like gorm to access database or go-redis/client to access redist\n- `router/` - Contains all the app routes \n- `main.go` - Main app file to start the app\n- `services` - Contains service app that works with app\n\n## Project Design\n\n### REST Api Design with Swagger Editor \nhttps://raw.githubusercontent.com/ajikamaludin/api-raya-ojt/dev/assets/schema.yaml\n### Database Table Design\n![table structure](https://github.com/ajikamaludin/api-raya-ojt/raw/dev/assets/case1_database.png)\n### TechStack In Plan\n![tech stack](https://github.com/ajikamaludin/api-raya-ojt/raw/dev/assets/case1_techstack.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajikamaludin-dev%2Fapi-raya-ojt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajikamaludin-dev%2Fapi-raya-ojt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajikamaludin-dev%2Fapi-raya-ojt/lists"}