Skip to content

ciatph/ciatph.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

ciatph.github.io

AMIA-CIAT demo output website (version 2.0)
A Vue.js project

version 2.0.0

Static build files from the latest vue project at branch vue-version.
Contains updated content with new AMIA Phase 2 information and documents.


Requirements

The following requirements and dependencies were used for this project. Other system and software configurations are open for testing.

  1. Windows 10 Pro
  2. NodeJS
    • npm version 10.16.3
    • npm version 6.9.0

Build Setup

  1. Clone the project.
    git clone https://github.com/ciatph/ciatph.github.io.git

  2. Checkout branch vue-version
    git checkout vue-version

  3. Install dependencies:
    npm install

  4. Serve with hot reload at localhost:8080
    npm run dev

  5. Build for production with minification.
    npm run build
    (static build files will be generated in the /dist directory)

  6. Build for production and view the bundle analyzer report
    npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

Deployment to GitHub Pages

The website, accessible from https://ciatph.github.io serves static build files pushed into the master branch.

This can be manually done by (a) pushing static build files from the /dist directly into the master branch, or (b) automatically by pushing vue project code updates into the vue-version branch. Please follow the instructions below to trigger the automatic Travis CI/CD.

Read on this reference for more information on setting up Travis CI for GitHub pages.

Automatic CI/CD to GitHub Pages Using Travis

  1. Create a branch from vue-version.
    git checkout -b my-updates-branch

  2. Edit and push updates to my-updates-branch.

  3. Create a new Pull Request (PR) from the my-updates-branch that you've created to branch vue-version.

  4. Set the following in the resulting "Open a pull request" page:

    • base: vue-version
    • compare: my-updates-branch
    • Press the [Create pull request] button.
    • WAIT for the Travis CI checks to finish.
  5. Press the [Merge pull request] button.

    WARNING: It is important to WAIT for the Travis CI checks from #4 to finish first before pressing this button, else the Travis CI build will fail.

  6. View the travis CI status from https://travis-ci.com/ciatph/ciatph.github.io.
    New GitHub pages website updates can be viewed from https://ciatph.github.io if the build passed.

Manual Deployment to GitHub Pages

Please take note, the steps mentioned in Automatic CI/CD to GitHub Pages Using Travis is the recommended way for publishing updates to the GitHub pages website.

  1. Follow the steps from the local Build Setup section. Keep the contents of the /dist directory.

  2. Checkout a new branch from the master branch.
    git checkout -b <NEW_BRANCH_NAME>

  3. Copy the static contents of the local /dist directory (from # 1) into <NEW_BRANCH_NAME>.

  4. Depending on the updated static files, you may need to delete some .js, .map and .css files from /static/css or /static/js. Make sure that only the contents of /dist will exist in <NEW_BRANCH_NAME>.

  5. Push the new branch <NEW_BRANCH_NAME> and create a pull request.

  6. Approve the pull request if there are no conflicts.

Deployment to Firebase Hosting

For testing purposes, the static build files can be optionally uploaded to Firebase hosting prior to deploying on GitHub pages.

Firebase CLI is required.

  1. Login to the firebase cli as ciat.ph06.
  2. Build the website. npm run build
  3. Deploy to firebase (https://ciatphdemo.firebaseapp.com/). firebase deploy

Updated: 20230121