{"id":13688412,"url":"https://github.com/guptavasu1213/PostHub","last_synced_at":"2025-05-01T19:30:59.183Z","repository":{"id":129574882,"uuid":"307619505","full_name":"guptavasu1213/PostHub","owner":"guptavasu1213","description":"This repository contains a RESTful API and front-end for a text sharing web application where the users can share their posts with the public while maintaining anonymity.","archived":false,"fork":false,"pushed_at":"2020-12-03T03:18:32.000Z","size":121,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-12T12:47:27.733Z","etag":null,"topics":["database","golang","pastebin","restful-api","text-sharing","typescript"],"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/guptavasu1213.png","metadata":{"files":{"readme":"README.md","changelog":"changePost.go","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}},"created_at":"2020-10-27T07:28:51.000Z","updated_at":"2022-12-01T22:59:16.000Z","dependencies_parsed_at":"2023-03-23T17:22:22.715Z","dependency_job_id":null,"html_url":"https://github.com/guptavasu1213/PostHub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guptavasu1213%2FPostHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guptavasu1213%2FPostHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guptavasu1213%2FPostHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guptavasu1213%2FPostHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guptavasu1213","download_url":"https://codeload.github.com/guptavasu1213/PostHub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932629,"owners_count":21667183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["database","golang","pastebin","restful-api","text-sharing","typescript"],"created_at":"2024-08-02T15:01:13.224Z","updated_at":"2025-05-01T19:30:58.333Z","avatar_url":"https://github.com/guptavasu1213.png","language":"Go","funding_links":[],"categories":["golang"],"sub_categories":[],"readme":"# PostHub\n\n## Overview\nThis repository contains a RESTful API and front-end for a text sharing web application where the users can share their posts with the public while maintaining anonymity. \n\n## Database used\n* Sqlite 3\n\n## Prerequisites\n* Golang (Tested on 1.15.2)\nFollow these steps: https://golang.org/doc/install\n* Gorrila Mux Package\n```\ngo get -u github.com/gorilla/mux\n```\n* Sqlx Library\n```\ngo get github.com/jmoiron/sqlx\n```\n* Goose database migration tool\n```\ngo get -u github.com/pressly/goose/cmd/goose\n```\n* Sqlite3 driver for golang\n```\ngo get github.com/mattn/go-sqlite3\n``` \n* Typescript (Tested on 3.8.2)\n```\nsudo apt install node-typescript\n```\n* Sqlite3 for local use [optional] (Tested on 3.31.1)\n```\nsudo apt install sqlite3\n```\n\n## Usage\nTo build the server, run the following:\n* -port is an optional argument that specifies the port number to launch the server on. By default, the port is 8080.\n* -dbPath is an optional argument that specifies the database file to import and export the records from. By default, it uses `records.db` file\n```\ngo build -o server\n./server [-port \u003cport number\u003e] [-dbPath \u003cdatabase file path\u003e]\n```\nAfter running the server, open your web browser and type this in the address bar: `localhost:\u003cport number of go server\u003e`\n\n## Example\n```\n./server -port 8080 -dbPath ./someDatabaseFile.db\n```\n\n## Status\nCompleted\n\n## Authors\n* Vasu Gupta","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguptavasu1213%2FPostHub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguptavasu1213%2FPostHub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguptavasu1213%2FPostHub/lists"}