{"id":21478194,"url":"https://github.com/kyrylodevshyrokov/postgresql-social-network-api","last_synced_at":"2026-04-15T18:02:07.171Z","repository":{"id":245445736,"uuid":"818189622","full_name":"kyrylodevshyrokov/postgresql-social-network-api","owner":"kyrylodevshyrokov","description":"An API created for potential social network application","archived":false,"fork":false,"pushed_at":"2024-06-21T21:32:40.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T08:23:21.365Z","etag":null,"topics":["express","jest","node-pg-migrate","postgresql","sql"],"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/kyrylodevshyrokov.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-06-21T09:40:45.000Z","updated_at":"2024-06-21T21:32:43.000Z","dependencies_parsed_at":"2024-06-22T06:06:30.874Z","dependency_job_id":"7c315b15-3749-4827-9bb8-ebc58b043308","html_url":"https://github.com/kyrylodevshyrokov/postgresql-social-network-api","commit_stats":null,"previous_names":["kyrylodevshyrokov/postgresql-social-network-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kyrylodevshyrokov/postgresql-social-network-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyrylodevshyrokov%2Fpostgresql-social-network-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyrylodevshyrokov%2Fpostgresql-social-network-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyrylodevshyrokov%2Fpostgresql-social-network-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyrylodevshyrokov%2Fpostgresql-social-network-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyrylodevshyrokov","download_url":"https://codeload.github.com/kyrylodevshyrokov/postgresql-social-network-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyrylodevshyrokov%2Fpostgresql-social-network-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31853279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["express","jest","node-pg-migrate","postgresql","sql"],"created_at":"2024-11-23T11:17:07.239Z","updated_at":"2026-04-15T18:02:07.153Z","avatar_url":"https://github.com/kyrylodevshyrokov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social Networking API\n\nThis API allows you to perform CRUD operations on users (create, read, update, delete), potentially suitable for building a social networking application.\n\n## Technologies\n- **Express:** a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications\n- **PostgreSQL:** a free and open-source relational database management system emphasizing extensibility and SQL compliance\n- **SQL:** domain-specific language used to manage data, especially in a relational database management system\n- **Jest:** a JavaScript testing framework designed to ensure correctness of any JavaScript codebase\n- **Node-pg-migrate:** Node.js database migration management built exclusively for postgres\n\n## Getting Started\n\n1. Clone the repository locally.\n2. Install all dependencies:\n`npm install`\n3. Fill in your `.env` file based on the example:\n```javascript\nDB_HOST=localhost\nDB_PORT=your_port\nDB_NAME=name_of_your_database\nDB_USER=name_of_user\nDB_PASSWORD=your_password\n\nAPP_PORT=your_app_port\n```\n4. Run database migration:\n`DATABASE_URL=postgres://USERNAME:PASSWORD@localhost:PORT/DATABASE_NAME npm run migrate up`\n5. Start the project:\n`npm start`\n\n## API Endpoints\n\n### _Users_\n\n### Get All Users\n\n- Method: **GET**\n- URL: {{URL}}/users\n- Requires Auth: **NO**\n- Description: This endpoint allows to get list of all users.\n\n### Get User By ID\n\n- Method: **GET**\n- URL: {{URL}}/users/:id\n- Requires Auth: **NO**\n- Description: This endpoint allows to get details about one user by ID.\n\n### Add New User\n\n- Method: **POST**\n- URL: {{URL}}/users\n- Data:\n```javascript\n{\n    \"username\": \"Tom Shelby\",\n    \"bio\": \"Gipsy King\"\n}\n```\n- Requires Auth: **NO**\n- Description: This endpoint allows to add a new user with filled following fields: username, and bio.\n\n### Edit User By ID\n\n- Method: **PUT**\n- URL: {{URL}}/users/:id\n- Data:\n```javascript\n{\n   \"username\": \"Tomas Shelby Young\",\n   \"bio\": \"Next Gipsy King\"\n}\n```\n- Requires Auth: **NO**\n- Description: This endpoint allows to edit the user by changing username, or/and bio.\n\n### Delete User By ID\n\n- Method: **DELETE**\n- URL: {{URL}}/users/:id\n- Requires Auth: **NO**\n- Description: This endpoint allows to delete the user by ID.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyrylodevshyrokov%2Fpostgresql-social-network-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyrylodevshyrokov%2Fpostgresql-social-network-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyrylodevshyrokov%2Fpostgresql-social-network-api/lists"}