{"id":19584690,"url":"https://github.com/spacesick/socketio-messaging","last_synced_at":"2026-05-04T21:32:22.822Z","repository":{"id":168303360,"uuid":"634812838","full_name":"spacesick/socketio-messaging","owner":"spacesick","description":"Simple real-time chatting with Node.js, Socket.io, and Prisma.","archived":false,"fork":false,"pushed_at":"2023-07-04T03:53:12.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T13:52:50.667Z","etag":null,"topics":["nodejs","prisma","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/spacesick.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":"2023-05-01T09:05:08.000Z","updated_at":"2023-07-04T07:47:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"19d72935-06a2-4184-94ed-4e70c01c9fbb","html_url":"https://github.com/spacesick/socketio-messaging","commit_stats":null,"previous_names":["spacesick/socketio-messaging"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spacesick/socketio-messaging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacesick%2Fsocketio-messaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacesick%2Fsocketio-messaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacesick%2Fsocketio-messaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacesick%2Fsocketio-messaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacesick","download_url":"https://codeload.github.com/spacesick/socketio-messaging/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacesick%2Fsocketio-messaging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32625989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"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":["nodejs","prisma","socket-io"],"created_at":"2024-11-11T07:49:22.869Z","updated_at":"2026-05-04T21:32:22.804Z","avatar_url":"https://github.com/spacesick.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# socketio-messaging\n\nThis is a simple backend implementation for a real-time chatting web app using Node.js, Socket.io, and Prisma hooked to a PostgreSQL database. You can see a pairing frontend implementation in [one of my other repositories](https://github.com/spacesick/vehicle-rental-nuxt).\n\n## Running the server\n\n1. Clone this repository\n2. Make sure you have npm and Node.js version 14 or higher installed\n3. Install the required packages,\n\n   ```bash\n   npm install\n   ```\n\n4. Create a `.env` file in the root directory and define the following environment variables,\n   - `PORT`: the desired port for the server\n   - `FRONT_END_DEPLOYMENT`: the URL of your frontend app\n   - `DATABASE_URL`: the URL of your PostgreSQL database\n\n   Below is an example,\n\n   ```dotenv\n   PORT=8080\n   FRONT_END_DEPLOYMENT=\"http://localhost:3000\"\n   DATABASE_URL=\"postgresql://user:password@host:port/database?schema=public\"\n   ```\n\n5. Run the following to migrate the Prisma schema into your database and generate a Prisma client,\n\n   ```bash\n   npx prisma db push\n   npx prisma generate\n   ```\n\n6. Start the server,\n\n   ```bash\n   npm start\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacesick%2Fsocketio-messaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacesick%2Fsocketio-messaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacesick%2Fsocketio-messaging/lists"}