Industrial and Systems Engineering Design Module
Paul Grogan pgrogan@stevens.edu
This application can be used directly with Python and Node.js.
The following are required prior to installing or using this application.
- Python 3
- Node.js v14
To install Python dependencies, run the following from the project root.
python -m pip install -r requirements.txt
python -m pip install uvicornTo install Node.js dependencies, run the following from the project root.
npm installTo build the application, run the following from the project root.
npm run buildTo use the application, run the following from the project root.
npm run startThe application is available via a web browser at http://localhost. The default admin username is admin@example.com with password admin. The default registration passcode is passcode.
The following settings are configurable either via environment variables or using a .env file in the project root:
- ISE_SECRET: server-side authorization secret (default:
change me) - ISE_DATABASE_URL: database connection string (default:
sqlite:///./data.db) - ISE_ADMIN_EMAIL: default admin username (default:
admin@example.com) - ISE_ADMIN_PASSWORD: default admin password (default:
admin) - ISE_REGISTER_PASSCODE: default registration passcode (default:
passcode) - ISE_LOGIN_LIFETIME_SECONDS: default login lifetime in seconds (default:
7200)
This application can also be used as a Docker image/container.
The following are required to use this application in Docker mode.
- Docker
docker build -t code-lab/ise-design .Simple.
docker run -it code-lab/ise-designThe application is available via a web browser at http://localhost. The default admin username is admin@example.com with password admin. The default registration passcode is passcode.
Advanced.
docker volume create ise_data
docker run --name ise-design --restart always --volume ise_data:/data --env "ISE_DATABASE_URL=sqlite:////data/data.db" --env "ISE_SECRET=secret" --env "ISE_ADMIN_EMAIL=admin@example.com" --env "ISE_ADMIN_PASSWORD=admin" --env "ISE_REGISTER_PASSCODE=passcode" code-lab/ise-designThe application is available via a web browser at http://localhost.
This material is based upon work supported in part by the National Science Foundation under Grant No. 1943433. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.