{"id":24746599,"url":"https://github.com/samuelmarks/ng-material-scaffold","last_synced_at":"2026-04-11T22:03:17.047Z","repository":{"id":35027958,"uuid":"105026915","full_name":"SamuelMarks/ng-material-scaffold","owner":"SamuelMarks","description":"@angular/material scaffold with REST API integration; see restify-orm-scaffold for backend example","archived":false,"fork":false,"pushed_at":"2024-04-15T00:35:25.000Z","size":2654,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T01:22:10.865Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamuelMarks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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}},"created_at":"2017-09-27T14:13:26.000Z","updated_at":"2024-04-17T21:31:55.788Z","dependencies_parsed_at":"2024-04-17T21:31:40.427Z","dependency_job_id":"1c4cb78b-5aab-4a50-9662-e7e3bf2ceb29","html_url":"https://github.com/SamuelMarks/ng-material-scaffold","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/SamuelMarks%2Fng-material-scaffold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fng-material-scaffold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fng-material-scaffold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fng-material-scaffold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamuelMarks","download_url":"https://codeload.github.com/SamuelMarks/ng-material-scaffold/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235964804,"owners_count":19073477,"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":"2025-01-28T04:29:30.723Z","updated_at":"2026-04-11T22:03:17.042Z","avatar_url":"https://github.com/SamuelMarks.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ng-material-scaffold\n====================\n[![License](https://img.shields.io/badge/license-Apache--2.0%20OR%20MIT-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Angular build](https://github.com/SamuelMarks/ng-material-scaffold/actions/workflows/main.yml/badge.svg)](https://github.com/SamuelMarks/ng-material-scaffold/actions/workflows/main.yml)\n\nSimple scaffold generated with [`@angular/cli`](https://github.com/angular/angular-cli) then implemented manually. Uses standard OAuth2 (RFC6749) password grant flow.\n\nFor example server, see https://github.com/SamuelMarks/serve-actix-diesel-auth-scaffold\n\nFWIW: Eventually, most of this repo will be codegenerated from https://github.com/SamuelMarks/serve-actix-diesel-auth-scaffold/blob/master/openapi.json\n\n## Update version\n\n    sed -i \"/this.serverStatus =/c\\    this.serverStatus = { version: '@ $(jq -r .version package.json); '};\" src/app/server-status/server-status.component.ts\n\n## Deploy distribution\nClone [ng-material-scaffold-dist](https://github.com/SamuelMarks/ng-material-scaffold-dist) one directory above, then:\n\n    rm -rf dist; ng build --confguration production \u0026\u0026 d=../ng-material-scaffold-dist \u0026\u0026 rm -rf \"${d}/dist\" \u0026\u0026 mv \"${PWD}/dist/${PWD##*/}/browser/\" \"${d}/dist\" \u0026\u0026 cd \"${d}\" \u0026\u0026 (git add .; git status) || ( \u003e\u00262 echo BUILD FAILED )\n\n## Configure a reverse proxy for server\n\nUse a long [nginxctl](https://github.com/offscale/nginxctl) CLI command to create an nginx config and server it:\n\n    python -m nginxctl serve --temp_dir '/tmp' -b 'server' --server_name 'localhost' --listen '8080' -b 'location' '/api' --proxy_pass 'http://localhost:3000' --proxy_redirect 'off' -} -b 'location' '/' --root '/tmp/wwwroot' --try_files '$uri$args $uri$args/ /index.html' -} -}\n\nOr just write a config (below is what the command generates… with 2 newlines thrown in):\n\n```nginx\nserver {\n    server_name localhost;\n    listen 8080;\n\n    location /api {\n        proxy_pass http://localhost:3000;\n        proxy_redirect off;\n    }\n\n    location / {\n        root /tmp/wwwroot;\n        try_files $uri$args $uri$args/ /index.html;\n    }\n}\n```\n\nFor development server, run with:\n\n    python -m nginxctl serve --temp_dir '/tmp' -b map '$http_upgrade $connection_upgrade' --default 'upgrade' --\"''\" close -} -b 'server' --server_name 'localhost' --listen '8080' -b 'location' '/api' --proxy_pass 'http://localhost:3000' --proxy_redirect 'off' -} -b 'location' '^~ /sockjs-node/' --proxy_pass 'http://127.0.0.1:4200' --proxy_set_header 'Upgrade $http_upgrade' --proxy_set_header 'Connection $connection_upgrade' --proxy_set_header 'Host $host' --proxy_http_version '1.1' --proxy_cache_bypass '$http_upgrade' -}  -b 'location' '/' --proxy_pass 'http://127.0.0.1:4200/' --proxy_set_header 'Upgrade $http_upgrade' --proxy_set_header 'Connection $connection_upgrade' --proxy_set_header 'Host $host' --proxy_http_version '1.1' --proxy_cache_bypass '$http_upgrade' -} -}\n\nOr just write a config (below is what the command generates… with some newlines thrown in):\n```nginx\nmap $http_upgrade $connection_upgrade {\n    default upgrade;\n    \"''\" close;\n}\n\nserver {\n    server_name localhost;\n    listen 8080;\n\n    location /api {\n        proxy_pass http://localhost:3000;\n        proxy_redirect off;\n    }\n\n    location ^~ /sockjs-node/ {\n        proxy_pass http://127.0.0.1:4200;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection $connection_upgrade;\n        proxy_set_header Host $host;\n        proxy_http_version 1.1;\n        proxy_cache_bypass $http_upgrade;\n    }\n\n    location / {\n        proxy_pass http://127.0.0.1:4200/;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection $connection_upgrade;\n        proxy_set_header Host $host;\n        proxy_http_version 1.1;\n        proxy_cache_bypass $http_upgrade;\n    }\n}\n```\n\n---\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.4.\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.\n\n---\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttps://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fng-material-scaffold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelmarks%2Fng-material-scaffold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fng-material-scaffold/lists"}