{"id":19830637,"url":"https://github.com/ansforge/archetype-angular","last_synced_at":"2025-02-28T17:25:41.055Z","repository":{"id":104902253,"uuid":"482945995","full_name":"ansforge/archetype-angular","owner":"ansforge","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-18T19:38:32.000Z","size":466,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-11T09:51:31.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/ansforge.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-04-18T18:01:35.000Z","updated_at":"2022-04-19T10:55:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3be51f2-5514-456e-88a7-b3c93c94a5c9","html_url":"https://github.com/ansforge/archetype-angular","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/ansforge%2Farchetype-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansforge%2Farchetype-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansforge%2Farchetype-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansforge%2Farchetype-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansforge","download_url":"https://codeload.github.com/ansforge/archetype-angular/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241190026,"owners_count":19924951,"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-12T11:24:30.559Z","updated_at":"2025-02-28T17:25:41.036Z","avatar_url":"https://github.com/ansforge.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Test environment:\n- simulate a backend rest service to deliver mock data in json format with `Json Server`\n\n `data.json` : contains the data which should be exposed by the rest api\n- a server-side `proxy` is used to call the json server instead of the backend server\n\n `proxy.conf.js`: contains the proxy rules\n\n### Precondition:\n\n- install json server (if it is not already done) \n```\nnpm install -g json-server\n```\n\n#### Steps:\n\n- run json server in terminal\n\n```\njson-server mock/data.json --port 3010\n```\n\n- set `API_URL`  in environment.ts to `http://localhost:4200/`\n\n- run the angular dev server (with the proxy config) in terminal\n\n```\nng serve -c local\n```\n\n## Build and deploy the app in local:\n\n- compile the application to the dist folder\n\n```\nng build\n```\nadd --prod with the production settings\n```\nng build --prod\n```\n- install a web server `lite-server` (globally, if preferred)\n\n```\nnpm install --global lite-server\n```\n- run the web server in local\n\n```\nlite-server --baseDir=\"dist/enreg\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansforge%2Farchetype-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansforge%2Farchetype-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansforge%2Farchetype-angular/lists"}