CHAPTER 19
In this chapter, I am going to walk you through taking your application and bundling it, then deploying it to GitHub or Bitbucket pages so that you can see it running. The steps required to do this will not be exactly the same as you would do for production on one of your own servers, but it should be close enough to give you a starting point.
The steps that we are going to follow should work for both GitHub and Bitbucket repositories. Before we start, it is recommended that you have two repositories: one repository that stores your source code for development, and another repository that only contains your bundle for deployment. The following steps assume that you already have a development repository set up. Let’s get started:
This will come in handy when you are simply trying to test your application and you want it pushed somewhere easy and free, but without a lot of ceremony.
Here are links to GitHub and Bitbucket in case you run into any issues.
Remember, you can only have one set of pages per user account. Also, this only works if your code is front-end only. If your project has both client and server mixed together, then you may need to do some additional work.
We have been focusing on building applications using Aurelia. At some point, you will be deploying your solution to the web, and end users will view the application through their browsers. It is important keep your source code secure and try to mitigate third parties from copying your source code and throwing up their own solution. Here are a few points to take into consideration when deploying your solution: