{"id":23066167,"url":"https://github.com/denisaleman/fnugg-block","last_synced_at":"2025-10-14T09:06:40.399Z","repository":{"id":240689771,"uuid":"490443114","full_name":"denisaleman/fnugg-block","owner":"denisaleman","description":"Gutenberg block displays information about one of the ski resorts in Norway using fnugg API.","archived":false,"fork":false,"pushed_at":"2022-05-09T21:01:30.000Z","size":627,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T22:26:54.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/denisaleman.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":"2022-05-09T20:59:58.000Z","updated_at":"2022-05-09T21:01:35.000Z","dependencies_parsed_at":"2024-05-20T16:44:24.739Z","dependency_job_id":null,"html_url":"https://github.com/denisaleman/fnugg-block","commit_stats":null,"previous_names":["denisaleman/fnugg-block"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisaleman%2Ffnugg-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisaleman%2Ffnugg-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisaleman%2Ffnugg-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisaleman%2Ffnugg-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denisaleman","download_url":"https://codeload.github.com/denisaleman/fnugg-block/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246970337,"owners_count":20862508,"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-12-16T05:11:20.540Z","updated_at":"2025-10-14T09:06:35.356Z","avatar_url":"https://github.com/denisaleman.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ski resort Gutenberg block\n\n## Instructions\nSee [instructions.md](instructions.md)\n\n## Description\nThe plugin provides the user with a Gutenberg block that displays information about one of the ski resorts in Norway.\n\nThe information includes data on the state of weather, snow, windiness. The block also displays an image of the location of the resort and its name.\n\nThe data for filling the block is loaded from the site api.fnugg.no using the appropriate endpoints.\n\n### Demo\nLive:  [http://13.36.33.182/sample-page/](http://13.36.33.182/sample-page/)  \nAdmin: [http://13.36.33.182/wp-admin/post.php?post=2\u0026action=edit](http://13.36.33.182/wp-admin/post.php?post=2\u0026action=edit)\n\n###### Credentials\nlogin: dekode  \npassword: dekode\n\n### Dependencies and Requirements\nPHP 7.1 and Wordpress 5.8\n\n### Install\nThe plugin uses composer in order to autoload classes only, within the plugin folder:\n```bash\n# composer\ncomposer dumpautoload -o\n```\n\n#### Development\nFor development you need to install PHP dev dependencies, they are mostly coding style configuration files:\n```bash\n# composer\ncomposer install --dev\n```\n\nThe Gutenberg block itself is assembled with webpack provided all together with wordpress packages, to install them run:\n```bash\n# in plugin folder\ncd assets/blocks/fnugg-whether/\nnpm install\n```\n\nIn order to continue developing the block, use scripts defined in `package.json`.\n\n## File structure\nPlugin uses folder structure of [wp-strap](https://github.com/wp-strap/wordpress-plugin-boilerplate) boilerplate.\nOnly meaningfull parts are described bellow, others are parts of the boilerplate.\n\n```bash\n│ ## First level files\n├──plugin.php                    # Main entry file for the plugin\n├──composer.json                 # Composer dependencies \u0026 scripts\n├──phpcs.xml                     # PHPCodeSniffer configuration\n│\n│ ## Folders\n├──assets                        # Holds all Gutenberg block within corresponding folders\n│   └── fnugg-whether            # The Gutenberg block itself\n│       ├── build                # Bundles\n│       ├── src                  # Source files\n│       └── block.json           # Block metadata JSON file\n│\n└──src                           # Holds all the plugin php classes\n    ├── Bootstrap.php            # Bootstraps the plugin and auto-instantiate classes\n    │\n    │\n    ├── Fnugg                           # Namespace of the Fnugg API Integration\n    │   ├── Api.php                     # Hooks/functionality shared between the back-end and frontend\n    │   ├── CachingProxy.php            # Implementation of caching\n    │   ├── HttpClient.php              # Client and its interface\n    │   └── HttpClientInterface.php     # and its interface\n    │\n    └── FnuggWhetherPlugin                       # Namespace of Plugin\n        ├── App                                  # Application Classes\n        │     ├── General                         # General Classes\n        │     │   └── Blocks.php                  # Gutenberg blocks register\n        │     └── Rest                            # Rest API Controllers\n        │         ├── Search.php                  # Search Resort Controller\n        │         └── SuggestAutocomplete.php     # Autocomplete Controller\n        │\n        └── Config               # Plugin configuration\n            └── Classes.php      # Defines the folders and order of classes to init\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisaleman%2Ffnugg-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenisaleman%2Ffnugg-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisaleman%2Ffnugg-block/lists"}