- Lily Lacosse
- David Schilmoeller
- Thomas Vargas
- Lee Xiong
- Ryan Weispfenning
ThermaSolutions Product Inquiry App is a standalone application designed to simplify the submission and handling of a complex internal document. It has a user submission section which handles initial form submission as well as a simpler general feedback area, as well as an administration section which is password protected and allows for managing inquiries and feedback, as well ouputting a pre-filled docx file.
It was created for ThermaSolutions, a medical device manufacturer in Minnesota.
Make sure you have the following software installed on your computer:
- Node.js
- PostrgeSQL
- Nodemon
- AWS S3 Account - You'll need to skip or remove the image upload section if this is not included.
This project should be able to run in your favorite IDE. We used VS code while building it.
Before you get started, make sure you have the following software installed on your computer:
- Fork the repository
- Copy the SSH key in your new repository
- In your terminal type...
git clone {paste SSH link} - Navigate into the repository's folder in your terminal
- Open VS Code (or editor of your choice) and open the folder
- In the terminal of VS Code run
npm installto install all dependencies - Create a
.envfile at the root of the project and paste this line into the file:
SERVER_SESSION_SECRET=superDuperSecret
ACCESS_KEY = [YOUR AWS ACCESS KEY]
SECRET_ACCESS_KEY = [YOUR AWS SECRET ACCESS KEY]
AWS_BUCKET_URL = https://[your aws bucket name].s3.amazonaws.com
- Create a database named
thermasolutionsin PostgresSQL If you would like to name your database something else, you will need to changethermasolutionsto the name of your new database name inserver/modules/pool.js - The queries in the database.sql file are set up to create all the necessary tables that you need, as well as a dummy data table to test the app. Copy and paste those queries in the SQL query of the database. If this is going to production, leave out the dummy data.
- See the note on line 65 of database.sql - the mockData.csv will need to be located in a folder on the local machine and the route will need to be updated to reflect its location on your machine.
- Run
npm run serverin your VS Code terminal - Open a second terminal and run
npm run client
- open Postman or a similar application
- send an object such as the following to http://localhost:3000/api/user/register
{
"username":"(DESIRED USERNAME)",
"password":"(DESIRED PASSWORD)",
"access_level": "1"
}
Once everything is installed and running it should open in your default browser - if not, navigate to http://localhost:3000/#/home/0 to access the user page; http://localhost:3000/#/admin will take you to the admin login.
- Prime Digital Academy Instructors and Staff
- ThermaSolutions Team for guidance and support
- Aquamarine Cohort


