Skip to content

A web application for use by Paracosm which helps engineers update their calibration files for the PX-80. (More info in ReadMe)

Notifications You must be signed in to change notification settings

lukeherczeg/CalibrationApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Calibration File Updating App!

A web application for use by Paracosm written with React.js, Node.JS, Express, and CSS. It combines Amazon S3 Bucket Database technology with file management and a smooth, simple AI to allow engineers to update their calibration files for the PX-80 device.


Features Implemented:

• Full, protected and hashed user registration and login through MongoDB:

• Allows for entry of UUID, which is stored and used as a folder to encase files:

• File restriction to .png, .yml, .ROS:

• File upload functionality to Amazon S3 Bucket,

• Fully functional viewing of previous files in a given UUID:

• A protected route for the upload page that requires users to be logged in:

• Logout button returns user to home screen and refreshes session:

• Fully deployed, standalone website:


We were greatly helped by all of these wonderful tutorials and APIs :

- User Authentication: https://material.io/resources/


Having Heroku errors? Look no further!

Setup - Read the "Heroku Instructions.txt" first

Updating Heroku- We now have Heroku configured to update automagically through this very GitHub repo! Simply push your changes to the master branch and wait for Heroku to reconfigure to see the changes live on the website. If you're having issues and would like to configure Heroku manually through the CLI, read the following:

  • First - Sign into our heroku account through a web browser and look at the heroku deployments to get the most up-to-date one. Our deployment is live on https://calibrationapp.herokuapp.com/.

  • Second - Login to heroku through the command line.

  • Third - "git remote add heroku " will point Heroku towards the correct remote database to maintain changes. Check our Heroku account online to get the git repo link.

  • Fourth - To push your changes, "git add ." from the project directory to add everything, "git commit -m ", and git push heroku :master.

    • Errors - If you have any errors pushing to the heroku branch, see "Heroku Instructions.txt" for directions. If you're absolutely sure of what you're doing, give git push the --force flag to overwrite any conflicts and force an update.

Debugging - Heroku CLI has several powerful tools I use to debug issues:

  • BASH - "heroku run bash". This drops you into a bash session on the heroku server. You only have very basic tools, but you can ls, cat, etc. I used this to see that my local changes weren't properly being pushed to heroku (you can check the date and times here).

  • Heroku Logs - "heroku logs". This will allow you to see the most recent logs. Npm errors will print here.

  • Heroku Open - "heroku open". Attempts to launch the website, but for me personally it throws an error message and prints the url.

  • Heroku local - "heroku local". Runs the server locally. Use this is you suspect the issue is with the Heroku server itself (slow response time, not deploying changes, etc).


Updating Databases:

Amazon S3 Bucket

MongoDB Atlas

About

A web application for use by Paracosm which helps engineers update their calibration files for the PX-80. (More info in ReadMe)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published