{"id":23976013,"url":"https://github.com/ersync/persogen","last_synced_at":"2026-04-21T09:34:04.908Z","repository":{"id":270489377,"uuid":"837252645","full_name":"ersync/persogen","owner":"ersync","description":"Rails API for generating realistic mock profiles","archived":false,"fork":false,"pushed_at":"2024-12-31T15:29:39.000Z","size":195,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T17:16:22.531Z","etag":null,"topics":["api","fake-data","mock","rails","restful"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/ersync.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-08-02T14:36:10.000Z","updated_at":"2024-12-31T15:29:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a58139b-53ed-4302-bc06-f8118b2e741e","html_url":"https://github.com/ersync/persogen","commit_stats":null,"previous_names":["ersync/persogen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ersync/persogen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ersync%2Fpersogen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ersync%2Fpersogen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ersync%2Fpersogen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ersync%2Fpersogen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ersync","download_url":"https://codeload.github.com/ersync/persogen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ersync%2Fpersogen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32085621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","fake-data","mock","rails","restful"],"created_at":"2025-01-07T06:55:41.890Z","updated_at":"2026-04-21T09:34:04.900Z","avatar_url":"https://github.com/ersync.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Persogen  \n\n![Version](https://img.shields.io/badge/version-0.0.1-lightgreen)\n[![CircleCI](https://dl.circleci.com/status-badge/img/circleci/8MamMcAVAVNWTcUqkjQk7R/PfirDRh5ea4LigCP4kC27B/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/circleci/8MamMcAVAVNWTcUqkjQk7R/PfirDRh5ea4LigCP4kC27B/tree/main)\n![Test Coverage: 100%](https://img.shields.io/badge/Test%20Coverage-100%25-brightgreen)\n[![MIT License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)\n\nPersogen is a **Rails-based API** designed to help developers create realistic mock profiles for testing and development. It’s secure, straightforward, and tailored to make your workflow smoother.  \n\n- **Purpose:** Quickly generate single or bulk person profiles for your projects  \n- **Built With:** Rails 7.1.3, Ruby 3.3.4, PostgreSQL  \n- **Security:** Robust JWT authentication, powered by Devise  \n\n---\n\n## Features  \n\n- Generate up to 100 realistic profiles with personal, professional, and financial details.  \n- Secure JWT authentication and account management with Devise.  \n- RESTful API with consistent structure and comprehensive test coverage.  \n\n---\n\n## Getting Started  \n\n### Requirements  \n\nBefore you start, make sure you have:  \n- Ruby 3.3.4 or newer  \n- PostgreSQL 9.5 or higher  \n- Bundler gem  \n\n### Installation  \n\n1. **Clone the Repository**  \n   ```bash  \n   git clone https://github.com/yourusername/persogen.git  \n   cd persogen  \n   ```  \n\n2. **Install Dependencies**  \n   ```bash  \n   bundle install  \n   ```  \n\n3. **Set Up the Database**  \n   ```bash  \n   rails db:create  \n   rails db:migrate  \n   ```  \n\n4. **Start the Server**  \n   ```bash  \n   rails server  \n   ```  \n\n5. **Verify Installation**  \n\n   Visit `http://localhost:3000` to confirm the API is up and running.  \n\n---\n\n## How to Use the API  \n\n### 1. Authentication  \n\n#### Create an Account  \nSign up to get started.  \n\n```bash  \nPOST /signup  \nContent-Type: application/json  \n\n{\n  \"user\": {\n    \"email\": \"user@example.com\",\n    \"password\": \"SecurePass123!\",\n    \"password_confirmation\": \"SecurePass123!\"\n  }\n}\n```  \n\n#### Log In and Get Your JWT Token  \n```bash  \nPOST /login  \nContent-Type: application/json  \n\n{\n  \"user\": {\n    \"email\": \"user@example.com\",\n    \"password\": \"SecurePass123!\"\n  }\n}\n```  \n\nThe token will be in the response headers under `Authorization`. You’ll need this token for all API requests.  \n\n---\n\n### 2. Profile Generation  \n\n#### Generate a Single Profile  \n```bash  \nGET /api/v1/person  \nAuthorization: Bearer your_jwt_token_here  \n```  \n\n**Example Response:**  \n```json  \n{\n  \"data\": [{\n    \"name\": \"Richard Stamm\",\n    \"email\": \"edison.stiedemann@kutch.example\",\n    \"address\": {\n      \"street\": \"993 Earlene Radial\",\n      \"city\": \"Pourosville\",\n      \"state\": \"Mississippi\",\n      \"country\": \"Guyana\",\n      \"zip_code\": \"59029-1260\"\n    },\n    \"phone\": \"132-694-1497\",\n    \"job\": \"Legacy Farming Technician\",\n    \"company\": {\n      \"name\": \"Kulas LLC\",\n      \"industry\": \"Shipbuilding\"\n    },\n    \"social_media\": {\n      \"twitter\": \"man_borerman_borer\",\n      \"linkedin\": \"keneth.marvin\"\n    },\n    \"date_of_birth\": \"1966-06-10\",\n    \"credit_card\": {\n      \"number\": \"58194442128665567\",\n      \"expiry_date\": \"2027-12-31\"\n    }\n  }]\n}\n```  \n\n#### Generate Multiple Profiles  \n```bash  \nGET /api/v1/people?count=10  \nAuthorization: Bearer your_jwt_token_here  \n```  \n\n💡 **Tip:** Keep your token secure and always include it in the `Authorization` header for API requests.  \n\n---\n\n## Testing  \n\nWe’ve included RSpec tests for reliability:  \n\n```bash  \nbundle exec rspec  \n```  \n\n**Tested Areas:**  \n- User authentication  \n- Profile generation endpoints  \n- Error scenarios  \n\n**Coverage \u0026 CI:**\n- SimpleCov for test coverage tracking\n- CircleCI for continuous integration\n\n---\n\n## Roadmap  \n\n\n- Docker support  \n- Customizable profile fields  \n- Export profiles to JSON/CSV  \n- Swagger-based API documentation  \n- Rate limiting to handle heavy traffic  \n- Caching for faster responses  \n\n---\n\n## License  \n\nThis project is available under the MIT License.  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fersync%2Fpersogen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fersync%2Fpersogen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fersync%2Fpersogen/lists"}