Pages

Saturday, November 25, 2017

Waryway Website built on Aurelia hosted locally on Omega Onion2!

Announcement

I have deployed the new Waryway website FrontEnd based on Aurelia. This website is currently hosted on a dynamic ip address,with an Omega Onion as the server.

My main goal in this endeavor has been a 'hobby' website running with minimal power consumption. I had previously hosted websites on a full desktop computer (600w powersupply). This desktop running 24/7 had a marked spike in my energy bills after I got it running. I'm happy to report the omega onion is a much smaller footprint. 

I've had good uptime on a static PHP website hosted with reactphp - but I've decided to redesign the frontend/backend architecture. The new approach is an entirely Aurelia frontend with Microservices written in PHP, using reactPHP

The website itself is my initial Aurelia implementation - I have yet to link it to a microservice. Look to that in a following post.

Specifications:


  • Omega Onion2 
    • Nodejs
      • http-server
    • screen
  • Windows 10 'build' machine
    • Aurelia
    • Waryway\Frontend
    • au build for production
    • winscp for deployment

Deployment:

  1. Followed Aurelia's build instructions
  2. copied The scripts, bootstrap, and index.html files to the omega
  3. Started the http-server in screen
  4. Checked on an external network
  5. Profit!

Sunday, November 19, 2017

Setting up a Packagist PHP library using GitHub / Composer

Today I setup a new packagist entry for WaryWay's trait library. It was much easier then I expected. I have previously setup composer packages locally. This time, it wasn't much different. I build out the composer.json. Set the name. Then went ahead and tagged a semantic version. After I had all this in place and pushed up to GitHub, it was a simple matter to publish on packagist. 

Here are the exact steps:

  1. Follow the documentation on https://packagist.org/packages/submit
  2. Add the integration / services setting in github (See example1).
  3. Once setup with your token, click the 'test' button to let packagist know it is integrated.

Example 1