{"id":21607377,"url":"https://github.com/maccyber/fylkesting-web-with-sw","last_synced_at":"2025-03-18T15:21:09.580Z","repository":{"id":82105832,"uuid":"124217805","full_name":"maccyber/fylkesting-web-with-sw","owner":"maccyber","description":"POC - Forslagsløsning for fylkestinget with service workers","archived":false,"fork":false,"pushed_at":"2023-12-15T08:49:54.000Z","size":542,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T19:34:37.052Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maccyber.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":"2018-03-07T10:15:59.000Z","updated_at":"2018-03-07T10:16:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c4dd69f-84ec-4c22-a152-e1654a579d9f","html_url":"https://github.com/maccyber/fylkesting-web-with-sw","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/maccyber%2Ffylkesting-web-with-sw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Ffylkesting-web-with-sw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Ffylkesting-web-with-sw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Ffylkesting-web-with-sw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maccyber","download_url":"https://codeload.github.com/maccyber/fylkesting-web-with-sw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244246552,"owners_count":20422459,"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-24T20:30:15.396Z","updated_at":"2025-03-18T15:21:09.560Z","avatar_url":"https://github.com/maccyber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/telemark/fylkestinget-web.svg?branch=master)](https://travis-ci.org/telemark/fylkestinget-web)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n[![Greenkeeper badge](https://badges.greenkeeper.io/telemark/fylkestinget-web.svg)](https://greenkeeper.io/)\n\n# fylkestinget-web\n\nForslagsløsning for fylkestinget\n\n- [User guide](docs/userguide.md)\n\n# Azure authentication setup\n\nSign in to the [Azure portal](https://portal.azure.com/)\n\nIn the left-hand navigation pane go to *Azure Active Directory* -\u003e *App registrations* -\u003e *New application registration* and register the app with following settings\n\n| Setting | value |\n| ------- | ----- |\n| Name    | Your app name |\n| Application type | Web app / API |\n| Sign-on URL | https://your-domain.com/api/callback |\n\nGo to *Settings* -\u003e *Keys* in your registered app and type inn a Key description and value.\n\nGo to *Settings* -\u003e *Required permissions* in your registered app and add \"Microsoft Graph\" and choose the permission *Read all users' full profiles*. Add the same permission under *Windows Azure Active Directory*. Then click *Grant Permissions*\n\nFollow the link after \"Managed application in local directory\" in your registered app and *Users and groups*, click *Add user* and add user(s) you want to grant access to the app.\n\nSee [microsoft docs](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-integrating-applications)\n\n# S3 setup\n\nYou will need an S3 bucket on [AWS](https://aws.amazon.com) to persist [GUN](https://github.com/amark/gun) in production.\n\nFollow [this guide](http://gun.js.org/docs/Using-Amazon-S3-for-Storage)\n\nFor development you can persist to file.\n\n# Installation alternatives\n\n## 1. Run on host\n\n### Install\n\nNodejs \u003e= 8.9.4 and npm must be installed.\n\n```sh\ngit clone https://github.com/telemark/fylkestinget-web\ncd fylkestinget-web\nnpm i\n```\n\n### Edit config\n\nSee [config.js](config.js)\n\n```sh\nvim config.js\n```\n\n### Start fylkestinget-web\n```sh\nnpm start\n```\n\n## 2. Run from docker hub\n\n### Edit config\n\nSee [production.env](production.env)\n\n### Start fylkestinget-web\n\n```sh\ndocker run -d \\\n  -p 80:3000 \\\n  -p 443:3000 \\\n  --env-file production.env \\\n  --name fylkestinget-web \\\n  telemark/fylkestinget-web\n```\n\n## 3. Deploy to [Now](https://zeit.co/now)\n\n### Set secrets\n\nFor azure auth\n\n```sh\nnow secrets add fylkestinget_moa_domain \u003cyour-configured-domain.com\u003e\nnow secrets add fylkestinget_moa_tenant_id \u003cyour-tenant-id.onmicrosoft.com\u003e\nnow secrets add fylkestinget_moa_client_id \u003cyour-client-id\u003e\nnow secrets add fylkestinget_moa_client_secret \u003cyour-client-secret\u003e\nnow secrets add fylkestinget_session_key \u003ca-random-session-key\u003e\n```\n\nFor S3\n\n```sh\nnow secrets add fylkestinget_aws_access_key_id \u003cyour-access-key-id\u003e\nnow secrets add fylkestinget_aws_secret_access_key \u003cyour-access-key\u003e\nnow secrets add fylkestinget_aws_s3_bucket \u003cyour-bucket\u003e\n```\n\nDeploy to now\n```sh\nwget https://raw.githubusercontent.com/telemark/fylkestinget-web/master/production.env\nnow -E production.env https://github.com/telemark/fylkestinget-web\nnow alias fylkestinget-web-example-ykaxwfgdoy.now.sh your-configured-domain.com\n```\n\n## Screenshot\n\n![Screenshot](static/fylkestinget-preview.gif \"Screenshot of fylkestinget\")\n\n## Related\n\n- [opengov-meetings](https://github.com/zrrrzzt/opengov-meetings) Parse agenda from opengov\n\n## License\n\n[MIT](LICENSE)\n\n![Robohash image of fylkestinget-web](https://robots.kebabstudios.party/fylkestinget-web.png \"Robohash image of fylkestinget-web\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaccyber%2Ffylkesting-web-with-sw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaccyber%2Ffylkesting-web-with-sw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaccyber%2Ffylkesting-web-with-sw/lists"}