{"id":18737937,"url":"https://github.com/rocketlaunchr/friendly","last_synced_at":"2025-04-12T19:32:35.219Z","repository":{"id":64302471,"uuid":"245557644","full_name":"rocketlaunchr/friendly","owner":"rocketlaunchr","description":"local development webserver for front-end developers (with https)","archived":false,"fork":false,"pushed_at":"2020-03-09T13:15:20.000Z","size":309,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T06:55:33.925Z","etag":null,"topics":["html","http","https","javascript","local-development","webserver"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rocketlaunchr.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}},"created_at":"2020-03-07T02:57:41.000Z","updated_at":"2025-02-13T22:02:30.000Z","dependencies_parsed_at":"2023-01-15T09:45:43.983Z","dependency_job_id":null,"html_url":"https://github.com/rocketlaunchr/friendly","commit_stats":null,"previous_names":["rocketlaunchr/httpserver"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocketlaunchr%2Ffriendly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocketlaunchr%2Ffriendly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocketlaunchr%2Ffriendly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocketlaunchr%2Ffriendly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rocketlaunchr","download_url":"https://codeload.github.com/rocketlaunchr/friendly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248621342,"owners_count":21134815,"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":["html","http","https","javascript","local-development","webserver"],"created_at":"2024-11-07T15:27:27.757Z","updated_at":"2025-04-12T19:32:34.966Z","avatar_url":"https://github.com/rocketlaunchr.png","language":"Go","readme":"friendly - The FRiENDly webserver for front-end developers (For local development)\n======\n\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/rocketlaunchr/friendly/raw/master/logo.png\" alt=\"friendly\" /\u003e\n\u003c/p\u003e\n\n\n⭐ **the project to show your appreciation.**\n\nWhen you are developing your website locally, you may be encountering **CORS** issues.\nIn my case, I had an `iframe` that was calling `parent` to access the host site.\nAll major browsers such as Chrome, Safari and Firefox were blocking the call.\n\nYou can use `friendly` by placing the server in the same directory as your project to\nrun your website as if it was run on an actual production server.\n\nIt's that simple and easy to use.\n\nIt supports:\n- http and https\n- custom ports\n- custom paths (so you don't need to place it in the same directory as your project)\n\n\n**[Download here](https://github.com/rocketlaunchr/friendly/releases)**\n\n## Usage\n\n```bash\n./friendly -d \"\u003cpath\u003e\"  -b --save -r -s\n```\n\nor just place the application in your project path and run it without flags.\n\nThe recommended way is to install it globally (add to $PATH). Then you can run the server from anywhere without setting a `path` (which defaults to the current working directory).\n\n## Flags\n\n### port (p)\n\nSet a custom port. By default, it is `8080` for http and `4430` for https.\n\n### path (d)\n\nPoint to the directory of your project.\n\n### https (s)\n\nAutomatically create a self-signed SSL certificate. The browser will ask whether you trust the certificate. Allow it.\n\n### browser (b)\n\nOpen the project automatically on your default browser the moment the server starts up.\n\n### save\n\nIn https mode, everytime the server starts, it will create a new self-signed certificate.\nThe browser will repetitively ask if you trust the certificate. This can be annoying.\nUse this setting to reuse the same certificate.\n\n### remove (r)\n\nDelete a certificate you may have saved in the past.\n\n### quiet (q)\n\nDon't show any logs of the incoming requests.\n\n\n## Installation\n\nJust download the prebuilt executables from the [Releases](https://github.com/rocketlaunchr/friendly/releases). It is available for **Windows**, **macOS** and **Linux**.\n\nIf you want to customize the project to your needs, then clone this repo. You will need to know how to build Go projects after downloading the dependencies.\n\n\n```bash\nGITCOMMIT=$(git rev-parse --short HEAD) \u0026\u0026 \\\nVERSION=$(git describe --always) \u0026\u0026 \\\nenv GOOS=darwin GOARCH=amd64  go build -ldflags \"-X main.GITCOMMIT=$GITCOMMIT -X main.VERSION=$VERSION -s -w\" .\n```\n\n**NOTE:** Replace GOOS with `darwin`(macOS), `windows` or `linux`.\n\n\n\nOther useful packages\n------------\n\n- [dataframe-go](https://github.com/rocketlaunchr/dataframe-go) - Statistics and data manipulation\n- [dbq](https://github.com/rocketlaunchr/dbq) - Zero boilerplate database operations for Go\n- [electron-alert](https://github.com/rocketlaunchr/electron-alert) - SweetAlert2 for Electron Applications\n- [igo](https://github.com/rocketlaunchr/igo) - A Go transpiler with cool new syntax such as fordefer (defer for for-loops)\n- [mysql-go](https://github.com/rocketlaunchr/mysql-go) - Properly cancel slow MySQL queries\n- [react](https://github.com/rocketlaunchr/react) - Build front end applications using Go\n- [remember-go](https://github.com/rocketlaunchr/remember-go) - Cache slow database queries\n\n\n## Legal Information\n\nThe license is a modified MIT license. Refer to the `LICENSE` file for more details.\n\n**© 2020 PJ Engineering and Business Solutions Pty. Ltd.**\n\n## Final Notes\n\nFeel free to enhance features by issuing pull-requests.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocketlaunchr%2Ffriendly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocketlaunchr%2Ffriendly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocketlaunchr%2Ffriendly/lists"}