项目
在 GitHub 查看
michaelbromley/angular-wordpress-seed
关于
一款精简的 AngularJS 博客应用,旨在与 Wordpress JSON REST API 配合使用。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文angular-wordpress-seed
A bare-bones AngularJS blog app designed to work with the Wordpress JSON REST API.
Demo
http://www.michaelbromley.co.uk/experiments/angular-wordpress-seed/
Setting Up Wordpress
- Download and install Wordpress (Download link)
- Enable pretty permalinks (
Settings -> Permalinks), select "custom structure" and use the string/%post_id%/%postname%. - Install the JSON REST API (WP-API) plugin. Easiest way is to use the
Plugins -> Add Newfeature of the Wordpress admin interface. Manual install instructions can be found on the WP-API repo. - By default, the AngularJS service that communicates with Wordpress will look for posts with a category of "post". Additionally, posts which are also in the category "featured" will appear on the home page. These categories will therefore need to be set up.
Setting Up The Client
- Clone this repo.
- Run
npm installandbower installto download the dependencies. - Configure your paths and meta data in the
config.jsonfile of the root directory. - Run
gulp watchto build and start the watch task. - Navigate to the
/builddirectory in your browser to test. - Upload the contents of
/distto your production server.
Developing
Here is an outline of the folder structure:
./src
|- app // The Angular app itself.
| |- about // The various sections are in their
| |- blog // own folders, and the `common` folder
| |- common // houses any shared components & services
| |- home
|
|- assets // Any static assets such as images and icon fonts.
|- less // All styling for the app. Each section has its own
// .less file, which are imported into the main.less file.
./build // dev build created when Gulp is run
./dist // minified, concatenated distribution build created by Gulp.
Extras
- Simple, responsive CSS based on the Pure CSS framework.
- A couple of custom directives are included for simple pagination of blog posts and a revealing search input.
- Built-in support for handling search-engine and social-media crawlers based on this technique
License
MIT
探索相关项目
加载中…