Personal website built with AngularJS. Pages and articles are managed by Wordpress and served using the WP REST API plugin.
Development:
git clone [email protected]:loic-d/personal-website.gitcd personal-websitenpm install- setup a Wordpress installation with the following plugins:
WP REST API,Raw HTML&Better REST API Featured Images. - create an
Aboutpage and at least one blog post. - upload and install the theme available in
wordpress/rest_api_themeif you want to use your Wordpress site as a REST API only. - update
API_ROOTin/src/app.constants.jsso it reflects your configuration - build the project by running
gulp. This task runsbuild-devandconnect-dev - go to
http://localhost:8080/
Generate a build for production:
- run
gulp build-prodto generate a standalone/buildfolder at the root of the project - to serve the build, run
gulp connect-prodand go tohttp://localhost:8000/(production server loading optimized sources and cached templates)
Deployment on your VPS:
- update
VPS_URLingulpfile.jsso it matches your VPS URL - run
gulp deploy-prod. This will copy the content of the./buildfolder to/var/www/html/on your VPS (update this path ingulpfile.jsif needed) - note that the
.htaccessfile in the/apachefolder and thesitemap.xmlat the root of the project will be copied at the root of your build
