{"id":21480234,"url":"https://github.com/braginteractive/ngwp","last_synced_at":"2025-07-15T12:31:48.748Z","repository":{"id":87956672,"uuid":"48128291","full_name":"braginteractive/ngWP","owner":"braginteractive","description":"Angular app that uses the WP REST API","archived":false,"fork":false,"pushed_at":"2015-12-17T00:01:57.000Z","size":368,"stargazers_count":47,"open_issues_count":0,"forks_count":11,"subscribers_count":8,"default_branch":"master","last_synced_at":"2023-02-27T04:51:34.954Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/braginteractive.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}},"created_at":"2015-12-16T18:41:06.000Z","updated_at":"2023-03-15T12:15:49.532Z","dependencies_parsed_at":"2023-03-15T12:30:46.803Z","dependency_job_id":null,"html_url":"https://github.com/braginteractive/ngWP","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/braginteractive%2FngWP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/braginteractive%2FngWP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/braginteractive%2FngWP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/braginteractive%2FngWP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/braginteractive","download_url":"https://codeload.github.com/braginteractive/ngWP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226038791,"owners_count":17564046,"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-23T12:13:57.870Z","updated_at":"2024-11-23T12:13:58.820Z","avatar_url":"https://github.com/braginteractive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ngWP\n==========\n\nAngular app that uses the WP Rest API plugin.\n\n[DEMO](http://braginteractive.com/ngwp) \n\n[Blog Post](http://braginteractive.com/the-adventure-of-building-my-first-angular-app-with-the-wordpress-rest-api/) about building ngWP \n\n\n#### Setup\nClone or download ngWP.\n\nYou will need node and gulp to setup ngWP. Once those are installed run `npm install`. From there you can run `gulp bower` to install all the front-end dependencies.\n\nI have included several Gulp tasks to concat, minify, move, inject, and do all kinds of other things to the files. Here is the current workflow. \n\nOnce you have installed all the modules with `npm install` you should be ready to start development or whatever you want to do with the app. All you need to do is run `gulp` from the command line. \n\nThe `gulp` task runs the `gulp watch` task and will watch for any changes to the files within the `js` and `sass` directory. \n\nSo your first change should be to the Angular service that is doing GET requests to the WordPress website you have the REST API plugin installed on. Go to `/js/services/posts-service.js` and at the top of the file change the value of the `url` variable. \n\nIf you have the `gulp` task running, once you save the file all the gulp magic happens (check out the js task in gulpfile.js) and you should be able to see your posts. \n\nOpen another command line window and run `gulp serve`. This will setup a little web server so you can view your Angular app. Go to `http://localhost:3000/` and you should be able to navigate through the different pages. \n\nThat's it!\n\n\n#### Customization\nFor customization, basic knowledge of the command line and the following dependencies are required:\n\n- Angular ([https://angularjs.org/](https://angularjs.org/)) \n- Node ([http://nodejs.org/](http://nodejs.org/)) -`npm install`\n- Gulp ([http://gulpjs.com/](http://gulpjs.com/)) - `npm install --global gulp`\n- Bower ([http://bower.io/](http://bower.io/)) -`npm install -g bower`\n\n\n#### Gulp\n\n`gulp` - automatically handles changes to files in the sass and js directories\n\n`gulp fonts` - moves the Bootstrap font files from the bower directory into the root directory\n\n`gulp vendorjs` - concatenate and minify certain javascript files from the bower directory \n\n`gulp vendorcss` - concatenate and minify certain css files from the bower directory \n\n`gulp js` - concatenate and minify the angular app javascript files\n\n`gulp sass` - compile, prefix, and minify sass files\n\n`gulp serve` - start a dev server\n\n`gulp bower` - install bower components\n\n`gulp zip` - creates a zipped file in the root directory. Ignores the bower_components and node_modules directories.\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbraginteractive%2Fngwp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbraginteractive%2Fngwp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbraginteractive%2Fngwp/lists"}