Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.45 KB

File metadata and controls

53 lines (36 loc) · 1.45 KB

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