{"id":18373765,"url":"https://github.com/prest/angular-prest","last_synced_at":"2025-04-06T19:32:25.808Z","repository":{"id":109493927,"uuid":"102153596","full_name":"prest/angular-prest","owner":"prest","description":"pREST component for Angular","archived":false,"fork":false,"pushed_at":"2018-01-08T11:35:09.000Z","size":136,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-04-14T05:33:35.630Z","etag":null,"topics":["angular","angular-components","angular-directives","angular2","angular4","angular5","angularjs","prest"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"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/prest.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}},"created_at":"2017-09-01T21:14:28.000Z","updated_at":"2023-08-30T13:49:29.000Z","dependencies_parsed_at":"2023-09-24T05:08:30.393Z","dependency_job_id":"b97a81db-4143-4fea-a1f2-48bded23b61a","html_url":"https://github.com/prest/angular-prest","commit_stats":{"total_commits":23,"total_committers":6,"mean_commits":"3.8333333333333335","dds":0.6086956521739131,"last_synced_commit":"a4783b0d9302adbf2323684fc0bc9a44e417fed3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prest%2Fangular-prest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prest%2Fangular-prest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prest%2Fangular-prest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prest%2Fangular-prest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prest","download_url":"https://codeload.github.com/prest/angular-prest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142411,"owners_count":20890723,"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":["angular","angular-components","angular-directives","angular2","angular4","angular5","angularjs","prest"],"created_at":"2024-11-06T00:12:07.555Z","updated_at":"2025-04-06T19:32:23.457Z","avatar_url":"https://github.com/prest.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003eAngular pREST\u003c/h1\u003e\n  \u003cp align=\"center\"\u003eIt is a wrapper service to use with pREST API.\u003c/p\u003e\n  \u003cp align=\"center\"\u003eNPM: https://www.npmjs.com/package/angular-prest\u003c/p\u003e\n\u003c/p\u003e\n\n## What is pREST?\n\n- A fully RESTful API from any existing PostgreSQL database written in Go http://postgres.rest.\n\n## Install\n\n```bash\nnpm install angular-prest --save\n```\n\n## Example use:\n\nYou need to provide config data to the angular-prest service. Just import AngularPrestModule and put it in \"imports\" passing your config data to forRoot().\n\nEx:\n\nyours app.module.ts\n\n```\nimport { AngularPrestModule } from 'angular-prest';\n```\n\nand put AngularPrestModule in imports:\n\nex:\n```\n{\n  ...\n  imports: [\n    AngularPrestModule.forRoot({\n      localStorageData: 'the-localstorage-keyword',\n      tokenPath: 'path-to-token',\n      baseUrl: 'the-base-prest-service-url'\n    })\n  ]\n  ...\n}\n```\n\nthat is all you need, now you can import the AngularPrestService in yours components angular and use it. o/\n\nex:\n\ncomponent example!\n```\nimport { Component } from '@angular/core';\n\nimport { AngularPrestService } from 'angular-prest';\n\n\n@Component({\n  selector: 'app-example',\n  templateUrl: './example.component.html',\n  styleUrls: ['./example.component.css']\n})\nexport class ExampleComponent {\n\n  constructor(\n    private prestService: AngularPrestService\n  ) { }\n\n  ...\n\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprest%2Fangular-prest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprest%2Fangular-prest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprest%2Fangular-prest/lists"}