{"id":21808581,"url":"https://github.com/ericthomasca/star-trek-api","last_synced_at":"2026-04-11T11:02:44.168Z","repository":{"id":253482302,"uuid":"843617417","full_name":"ericthomasca/star-trek-api","owner":"ericthomasca","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-27T22:52:49.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T23:01:22.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/ericthomasca.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":"2024-08-16T23:33:29.000Z","updated_at":"2024-09-27T22:52:52.000Z","dependencies_parsed_at":"2024-08-17T03:24:50.753Z","dependency_job_id":null,"html_url":"https://github.com/ericthomasca/star-trek-api","commit_stats":null,"previous_names":["ericthomasca/star-trek-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericthomasca/star-trek-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericthomasca%2Fstar-trek-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericthomasca%2Fstar-trek-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericthomasca%2Fstar-trek-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericthomasca%2Fstar-trek-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericthomasca","download_url":"https://codeload.github.com/ericthomasca/star-trek-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericthomasca%2Fstar-trek-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31677819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"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":[],"created_at":"2024-11-27T13:15:36.289Z","updated_at":"2026-04-11T11:02:44.139Z","avatar_url":"https://github.com/ericthomasca.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Star Trek Database\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/ericthomasca/star-trek-api.svg)](https://pkg.go.dev/github.com/ericthomasca/star-trek-api)\n\nThis project provides a database for Star Trek series and episodes. It includes functionality to seed the database with data from JSON files.\n\n## Project Structure\n\n```\nstar-trek-api/\n│\n├── config/\n│ └── config.go # Configuration settings\n│\n├── data/\n│ ├── data.go # General data handling\n│ ├── ds9.go # Data for Deep Space Nine\n│ ├── ent.go # Data for Enterprise\n│ ├── tas.go # Data for The Animated Series\n│ ├── tng.go # Data for The Next Generation\n│ ├── tos.go # Data for The Original Series\n│ └── voy.go # Data for Voyager\n│\n├── models/\n│ └── models.go # Database models\n|\n├── seed/\n│ └── seed.go # Database seeding logic\n|\n├── go.mod # Go module file\n├── go.sum # Go module checksum file\n├── LICENSE # Project license\n├── main.go # Main application entry point\n├── README.md # Project documentation\n└── star-trek-api # Executable binary (if built)\n```\n\n## Setup\n\n### Prerequisites\n\n- Go (1.22+)\n- PostgreSQL\n\n### Installation\n\n1. **Clone the repository:**\n\n   ```sh\n   git clone https://github.com/yourusername/star-trek-database.git\n   cd star-trek-database\n   ```\n\n2. **Install dependencies:**\n\n   ```sh\n   go mod tidy\n   ```\n\n3. **Create a `.env` file:**\n\n   Rename `.env.example` to `.env` and edit it with your PostgreSQL credentials:\n\n   ```env\n   DB_HOST=localhost\n   DB_USER=yourusername\n   DB_PASS=yourpassword\n   DB_NAME=yourdbname\n   DB_PORT=5432\n   ```\n\n4. **Prepare the database:**\n\n   Ensure PostgreSQL is running and the database exists.\n\n### Running the Application\n\nTo seed the database, run:\n\n```sh\ngo run main.go\n```\n\nThis will:\n- Drop existing tables\n- Recreate tables\n- Seed the database with data from `data/` files\n\n## Data Files\n\n- **`data/data.go`**: General data handling functions.\n- **`data/ds9.go`**: Data for Deep Space Nine.\n- **`data/ent.go`**: Data for Enterprise.\n- **`data/tas.go`**: Data for The Animated Series.\n- **`data/tng.go`**: Data for The Next Generation.\n- **`data/tos.go`**: Data for The Original Series.\n- **`data/voy.go`**: Data for Voyager.\n\n## License\n\nMIT License.\n\n## Contact\n\nFor questions, contact [eric@ericthomas.ca](eric@ericthomas.ca).\n\n---\n\nFeel free to replace placeholders with actual information specific to your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericthomasca%2Fstar-trek-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericthomasca%2Fstar-trek-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericthomasca%2Fstar-trek-api/lists"}