- Add an
.env
file in the root directory with the following variables:PORT
- port you want to run the app onDESTINATIONEMAIL
- where this form is sentTRANSPORTERUSER
- email of email service we're piggybacking onTRANSPORTERPASS
- password for the sameEXPRESS_SESSION
- this is just a hash unique to the app for setting Express sessionCAS_URL_PROD
- production cas urlCAS_URL_DEV
- dev cas urlAPP_URL
- return url for cas
- Install dependencies:
npm install
- Run server (development):
nodemon
- Install wherever you want it.
- SCP .env file to that directory, for example
scp .env [email protected]:/opt/nodemailer-form
- Start and build app:
docker compose up -d