{"id":20557031,"url":"https://github.com/sharpvik/pwds-backend","last_synced_at":"2026-04-20T11:02:49.348Z","repository":{"id":114206256,"uuid":"232127431","full_name":"sharpvik/pwds-backend","owner":"sharpvik","description":"Server-side script for the Pwds Password Manager","archived":false,"fork":false,"pushed_at":"2020-01-06T15:18:22.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-05T21:46:38.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharpvik.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}},"created_at":"2020-01-06T15:17:51.000Z","updated_at":"2024-06-19T06:33:25.452Z","dependencies_parsed_at":"2023-06-15T23:30:45.646Z","dependency_job_id":null,"html_url":"https://github.com/sharpvik/pwds-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Fpwds-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Fpwds-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Fpwds-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Fpwds-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharpvik","download_url":"https://codeload.github.com/sharpvik/pwds-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242163859,"owners_count":20082224,"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":[],"created_at":"2024-11-16T03:34:24.133Z","updated_at":"2026-04-20T11:02:49.309Z","avatar_url":"https://github.com/sharpvik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pwds Server\n\nMaking Pwds Password Manager into a web service it needed a server-side script\nthat accepts requests from the client.\n\n\n\n## Getting Started\n\nIf you want to host Pwds on your own server, you are absolutely welcome to do\nso! \n\n\n### Prerequisites\n\nTo compile from source, you need to have **Go** installed on your machine! You\ncan try installing it through your package manager of choice like this:\n\n```bash\napt-get install golang-go\n```\n\nAlternatively, you can download [Go binary distributions][bin], go through the [installation process][install], and don't forget to [set the `$GOPATH`\nenvironment variable][GOPATH]!\n\n[bin]: https://golang.org/dl/\n[install]: https://golang.org/doc/install\n[GOPATH]: https://github.com/golang/go/wiki/SettingGOPATH\n\n\n### Config \u0026 Run\n\nAs soon as you have **Go** installed and running on your machine, you can do the\nfollowing:\n\n```bash\ngo get https://github.com/sharpvik/pwds-backend\n```\n\nThis command will fetch the whole GitHub repo and put it into a specific place\non your computer. For those, who are new to Go programming, I'll give a hack.\n\n```bash\ngo env GOPATH\n# Prints something like /home/username/go on UNIX-based systems.\n```\n\nThe above command prints out the absolute path to the folder where all\nGo-related things are supposed to be stored. I don't know what that path is for \nyou, so here I'll just call it `$GOPATH`. Knowing what your `$GOPATH` is, you\ncan now easily locate the newly installed `pwds-backend` package as follows:\n\n```bash\ncd $GOPATH/src/github.com/sharpvik/pwds-backend\n\n# Remember, $GOPATH (here and below) is not actually an environment variable,\n# it's just a placeholder for your own Go folder and is supposed to be\n# substituted with the path printed by `go env GOPATH`.\n```\n\nYou can also try ...\n\n```bash\ncd $(go env GOPATH)/src/github.com/sharpvik/pwds-backend\n```\n\n... instead of copy-pasting the output from `go env GOPATH` by hand.\n\nOnce you are in that folder, you'll need to change the `config.go` file a notch.\nEdit the `RootFolder` constant in `pwds-backend/config/config.go` so that it\nreflects the actual path to the `pwds-backend` folder on your machine.\n\nOn my machine it looks like this:\n\n```go\nRootFolder = \"/home/sharpvik/go/src/github.com/sharpvik/pwds-backend\"\n\n// My $GOPATH is set to /home/sharpvik/go so the string in RootFolder\n// reflects the exact location of the pwds-backend project folder on my machine.\n// You need to change this string to be\n//     RootFolder = \"$YOUR_GOPATH/src/github.com/sharpvik/pwds-backend\"\n```\n\nRun the following command from the project's root folder to start your server.\n\n```bash\ngo run main.go\n```\n\nIt will immediately start serving at `localhost:8000`. To change the port, stop\nthe server with `CTRL+C`, edit the `Port` constant in\n`pwds-backend/config/config.go`, restart the server.\n\n\n### Build \u0026 Install\n\nGo is actually a compiled language, however the `go run` command doesn't produce\nany visible executable files. To compile `pwds-backend`, you can\n\n```bash\ncd $GOPATH/src/github.com/sharpvik/pwds-backend\n\ngo build # puts binary `pwds-backend` file into the project folder\n\n# or alternatively, use\n\ngo install # creates binary file at $GOPATH/bin/pwds-backend\n```\n\n\n\n## Running the tests\n\nIf you want to test some module `X` you can do the following:\n\n```bash\n# Assuming you are now in the project's root folder -- `pwds-backend`\n\ncd X\ngo test\n\n# The `go test` command will print out something like this:\n#\n#     PASS\n#     ok  \tgithub.com/username/pwds-backend/X\t0.001s\n#\n# In case some of the tests fail, output will look like this:\n#\n#     --- FAIL: TestSomeFunc (0.00s)\n#         x_test.go:11: Function `SomeFunc` works incorrectly.\n#     FAIL\n#     exit status 1\n#     FAIL\tgithub.com/username/pwds-backend/X\t0.001s\n#\n```\n\n\n\n## Contributing\n\nAll contributions are welcome and appreciated! I'd be glad to accept your help\nwith this project. `CONTRIBUTING.md` will be added it future commits.\n\n\n\n## Authors\n\n- **Viktor A. Rozenko Voitenko** - *Initial work* - [sharpvik]\n\n[sharpvik]: https://github.com/sharpvik\n\n\n\n## License\n\nThis project is licensed under the **Mozilla Public License Version 2.0** --\nsee the [LICENSE](LICENSE) file for details.\n\nPlease note that this project is distributred as is,\n**with absolutely no warranty of any kind** to those who are going to deploy\nand/or use it. None of the authors and contributors are responsible (liable)\nfor **any damage**, including but not limited to, loss of sensitive data and\nserver machine malfunction.\n\n\n\n## Acknowledgments\n\n- Hat tip to [Billie Thompson] for the great [README template].\n- This project has been greatly improved by all those who commented under\n[this Reddit Post][Reddit post] of mine and gave valuable advice.\n\n[Billie Thompson]: https://gist.github.com/PurpleBooth\n[README template]: https://gist.github.com/PurpleBooth/109311bb0361f32d87a2\n\n[Reddit post]: https://www.reddit.com/r/Python/comments/egtgjq/password_manager_in_python3/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpvik%2Fpwds-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharpvik%2Fpwds-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpvik%2Fpwds-backend/lists"}