Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Latest commit

 

History

History
95 lines (66 loc) · 2.68 KB

README.md

File metadata and controls

95 lines (66 loc) · 2.68 KB

DEPRECATION WARNING

This repo is deprecated, you probably want to look at ClassPortal UI.

ClassPortal

Static React frontend for ClassPortal. Built with help from React Static Boilerplate.

This project requires access to a live instance of ClassPortal API, configured in /app/config.js.

Table of Contents

Directory Layout

.
├── app/                        # React app lives here!
│   ├── index.js                # React application entry point
│   ├── ajax.js                 # Http request methods
│   ├── auth.js                 # Auth methods for restricted routes
│   ├── components/             # Shared or generic UI components
│   │   ├── Footer/             # Shared Footer component
│   │   ├── Header/             # Shared Header component
│   │   └── ...                 # etc.
│   └── pages/                  # React components for web pages
│       ├── admin/              # Admin page
│       ├── login/              # Login page
│       └── ...                 # etc.
├── config/                     # Environment settings
├── node_modules/               # 3rd-party libraries and utilities
├── public/                     # Static files such as favicon.ico etc.
│   ├── dist/                   # The folder for compiled output
│   └── ...                     # etc.
├── test/                       # Tests
├── utils/                      # Utility and helper classes
│── package.json                # The list of project dependencies and NPM scripts
│── run.js                      # Build automation script, e.g. `node run build`
└── webpack.config.js           # Bundling and optimization settings for Webpack

Getting Started

Install

git clone https://github.com/ubccpsc/classportal-ui.git
yarn install

Lint

Eslint and stylelint are used to lint .js and .css files, respectively.

yarn run lint

Test

yarn run test

Build

Webpack is used to bundle all of the js and css assets, and Hot Module Replacement allows live reloading of .js and .css files.

yarn run start

Contribute

TBD

Develop

To run the dev build; this will start the server on https://localhost:3000/.

yarn run dev

Notes