Skip to content

This directory contains a website template and instructions for UCSC students to deploy a personal website on the UCSC domain.

License

Notifications You must be signed in to change notification settings

Shawn-Armstrong/UCSC_Student_Website_Template

Repository files navigation

UC Santa Cruz Student Website

Overview

  • This guide provides comprehensive instructions for students at UC Santa Cruz (UCSC) to host their personal websites under the UCSC domain.
  • If you're no longer a student, instructions are provided for deploying to gh-pages.
  • This guide provides a ready-to-use Vuejs template; alternatively, you can use your own front-end resources developed with React, Angular, HTML/CSS, etc.
  • Project is maintained by UCSC, CSE LinkedIn Group and licensed under the MIT License to encourage reuse, sharing and modification.

Demo

Live static demo viewable here.

ezgif com-optimize

Requirements

Setup

Instructions

  1. Clone the repository in a directory of your choice with the following command:

    git clone https://github.com/Shawn-Armstrong/UCSC_Student_Website_Template.git
  2. Fill in your details at ../assets/details.js for a quick start.

Usage

Development

  • Navigate to the project's root directory in a console and run, npm run serve, to spin up a development server which will host your current code in-browser at http://localhost:8080/ .

Deploy to UCSC domain

  1. Ensure you've added your CruzID to ../assets/details.js.

  2. Navigate to the root directory of the template and run, npm run build, which will create a directory called dist containing a production build of your website.

  3. Use Bitvise to SSH into the UNIX Timeshare, open a new SFTP windows then copy the files inside dist to public_html. Your website will be hosted at https://people.ucsc.edu/~YOUR_CRUZ_ID_HERE/#/ once the upload finishes.

    host: unix.ucsc.edu
    port: 22
    Username: CruzID
    password: Your Blue Password

    deploy

Deploy to gh-pages

If you're no longer a student you can still use this template.

  1. Create a new repository in your GitHub account, then clone this repository and push its content to your newly created repository.

  2. In ../assets/details.js, add the name of your repository in place of your CruzID. If your repository is named UCSC_Student_Website_Template then it would be:

    cruzId: "UCSC_Student_Website_Template"
  3. In the root directory run, npm run build followed by npm run deploy. Your website will be hosted at https://YOUR_GITHUB_USERNAME.github.io/YOUR_REPOSITORY_NAME/#/

Technical Details

About the template

  • The provided template uses the Vuejs 2.X framework in conjunction with the Vuetify 2.X component framework.

  • The template has a file, ..assets\utility.js, that'll handle basic changes to support people who are unfamiliar with web development. Simply plug in your information, and it will automatically make the necessary changes for you.

  • The project is organized in a standard Vuejs layout:

    \App
    ├── babel.config.js
    ├── jsconfig.json
    ├── package-lock.json
    ├── package.json
    ├── public
    │   └── index.html
    ├── src
    │   ├── App.vue         # App injection point
    │   ├── assets          # Resource files
    │   │   ├── utility.js  # Easy-to-use, auto fill-in
    │   │   └── ...
    │   ├── components      # UI component logic
    │   │   └── ...
    │   ├── main.js         # Project entry point
    │   ├── plugins         # Plugin configuration
    │   │   └── ...
    │   ├── router          # Routing to navigate to webpages logic
    │   │   └── index.js
    │   ├── store
    │   │   └── index.js
    │   ├── styles.scss
    │   │   └── main.scss
    │   └── views           # Webpage logic
    │       └── ...
    └── vue.config.js

Growing from the template

The template is written in Vuejs because it has a low entry point for beginners. If you understand basic JavaScript then I recommend this course when it's on sale for under $20. You can do a lot with only a few hours of this content and by looking at Veutify's interactive examples.

About

This directory contains a website template and instructions for UCSC students to deploy a personal website on the UCSC domain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published