A re-write of Purdue ECN's webqueue
This is a web based client of webqueue2-api. To use it you will need to do the following:
git clone https://github.itap.purdue.edu/ECN/webqueue2-frontend.git
cd webqueue2-frontend/
npm install
Example:
Serving From | homepage Value |
---|---|
www.coolproject.com |
http://www.coolproject.com/ |
www.anothercoolproject.com/subdirectory |
http://www.anothercoolproject.com/subdirectory |
nano package.json
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.