Skip to content

rit-construct-makerspace/shed-acs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shed-acs

This is the repository for the application that runs on the SHED Access Control System boxes. It consists of two separate applications, frontend and backend. The frontend is hosted as part of the software team's server on their heroku instance, and acts as the UI. The backend runs locally on the Raspberry Pi or Tinkerboard and handles switching the relay and detecting E-Stop presses via the GPIO.

Prerequisites: Node.js

Note: The default linux image for the Tinkerboard seems to be misconfigured when it comes to installing packages via apt-get. To temporarily fix this:

  1. Navigate to /etc/apt/apt.conf.d/ cd /etc/apt/apt.conf.d/
  2. Open apt.conf with a text editor (must use sudo)
  3. Add the below lines:

// Do not verify peer certificate Acquire::https::Verify-Peer "false"; // Do not verify that certificate name matches server name Acquire::https::Verify-Host "false";

These lines should be deleted after Node.js is installed for better security. For more information, visit the first answer here

Running the backend manually (Only works on Pi or Tinkerboard due to expecting GPIO)

  1. Open a terminal or command prompt and navigate to this directory
  2. Navigate to the backend directory cd backend
  3. Run the command npm install
  4. Run the command node index.js

The backend application will now be running inside this terminal and logging to it.

Running the frontend manually and locally (Pi, Tinkerboard, or Desktop)

  1. Open a terminal or command prompt and navigate to this directory
  2. Navigate to the frontend directory cd frontend
  3. Run the command npm install
  4. Run the command npm run build
  5. Navigate to the build directory cd build and open index.html with a web browser (ex. chrome)

Software Architecture Block Diagram

Shed access control system software architecure block diagram

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published