Skip to content

ECN/webqueue2-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

75b8c08 · Aug 3, 2021
Aug 3, 2021
Aug 3, 2021
Aug 3, 2021
Mar 16, 2021
Aug 2, 2021
Apr 19, 2021
Apr 19, 2021
Aug 3, 2021
Jun 23, 2020
Aug 3, 2021
Jul 16, 2021
Aug 3, 2021

Repository files navigation

webqueue2

A re-write of Purdue ECN's webqueue

UI Snapshot

Using This Project

This is a web based client of webqueue2-api. To use it you will need to do the following:

Clone this GitHub repo:

git clone https://github.itap.purdue.edu/ECN/webqueue2-frontend.git

Enter the repo directory:

cd webqueue2-frontend/

Install dependencies:

npm install

Modify the "homepage" value in package.json

Example:

Serving From homepage Value
www.coolproject.com http://www.coolproject.com/
www.anothercoolproject.com/subdirectory http://www.anothercoolproject.com/subdirectory
nano package.json

Build the Frontend

npm run build:frontend

This will output a static bundle in the build/ directory. This can be served by most webservers with some configuartion. See Create React App's docs on Deployment for general info.

For ECN's infrastructure, we assume you're deployment on Templeton using Apache with the webqueue2-api running on Pier. In that case, you can use this .htaccess configuartion:

# Enable the rewrite module
RewriteEngine On

# Reverse proxy all requests to the API to the API server.
# See mod_rewrite docs: https://httpd.apache.org/docs/current/mod/mod_rewrite.html
RewriteRule ^api/(.*)$ http://pier.ecn.purdue.edu:5000/api/$1 [P]

# Defer requests that are not files to client side routing
# See: https://create-react-app.dev/docs/deployment/#serving-apps-with-client-side-routing
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]

# Diable Auth
Satisfy any

If you're not using ECN infrastructure or this documentation is out of date by the time you're reading it, refer to the webqueue2-api deployment docs.