Skip to content

ECN/webqueue2-frontend

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
api
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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.