Skip to content

Wordpress on the back, angular 2 on the front and REST API to glue them together

Notifications You must be signed in to change notification settings

itsKnight847/wordpress-restapi-angular2

 
 

Repository files navigation

Building web app with Wordpress on the backend and Angular 2 on the front

Yeah, I know, it's (probably) unusual stuff, but why not, since we're going to use REST API 😉

What I'm using

  • SQlite3 (use whatever database you want, I just like when my repositories contain all building blocks)
  • Wordpress 4.4.1
  • Angular 2 (beta)
  • Bootstrap, with custom color scheme

alt tag

Wordpress configuration

SQLite plugin

  • Download "SQLite Integration" plugin
  • Copy the db.php file found in the sqlite-integratin plugin folder to wordpress/wp-content folder
  • By default sqlite-integratin plugin will create folder wp-content/database and will put db there You can override it, by I don't see any reason why. It's fine as it is.
  • No need to change wp-config-sample.php just rename it to wp-config.php

More examples you can find here

WP REST API

Documentation: http://v2.wp-api.org/

Admin password

  • user: admin
  • pass: 123

Go

  1. Setup the whole thing
$ npm run setup
  1. Development
$ npm run build && npm run watch
  1. Minify code
$ npm run compress

About

Wordpress on the back, angular 2 on the front and REST API to glue them together

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 74.0%
  • JavaScript 14.8%
  • CSS 11.1%
  • TypeScript 0.1%