🔥 Important!
👉 I'm rewriting this app ground up.
⏳ Previous solution is stored in different branch: v.1.0
Notice that I haven't tested it in windows, therefore it could be a problems. That said feel free to create a PR if you have good fix.
I'm using dockie/lamp
-
Get last image.
$ docker pull dockie/lamp
-
Install container.
$ docker run -d -p 8000:80 -p 2200:22 -p 3306:3306 -v $(pwd)/www:/var/www/html:rw dockie/lamp
Site will be available at http://localhost:8000/
-
Adding
wordpress
bd - http://localhost:8000/phpmyadmin -
Copy last wordpress CMS to
www
folder. -
Create
wp-config.php
. For development environment settings will be:define('DB_NAME', 'wordpress'); define('DB_USER', 'root'); define('DB_PASSWORD', 'root'); define('DB_HOST', 'localhost'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', '');
-
Install packages and build js and css
$ npm i && npm run build
-
Activate theme.
-
Install plugins (message will appear in dashboard after theme will be active).
-
Activate permalinks of type "Post name".
Now you should be able to use rest-api, for example to get all posts use link: http://localhost:8000/wp-json/wp/v2/posts
Frontend stack
CMS
- Wordpess code tested for version 4.7.3
- TGM Plugin Activation 2.6.1 (included in theme)
- Rest API Plugin 2.0-beta15 (included in theme)
Backend stack
MySQL
Connect on localhost:3306
, user root
, password root
.
starter for Angular v2+ using Webpack Angular 2 — Introduction to Redux ngrx/store