Skip to content

toyamarodrigo/integracion-proyecto1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1er Proyecto para Integracion Tecnologica

Control de Acceso NFC + Raspberry Pi + Web

Deploy: https://rt-demo-controlaccess.herokuapp.com

Tech used

  • ViteJS
  • Typescript / JS
  • React
  • React Router
  • Chakra UI
  • React Hook Forms
  • ExpressJS
  • Python

Hardware

  • NFC Reader RC522
  • Raspberry Pi 4 Model B
  • Tags 13.56mhz

How to start locally

You'll need Node, Python before starting the app. Make sure to install them.

  # Libraries for raspberry, rc522 + python
  $ sudo apt-get install python3-dev python3-pip
  $ sudo pip3 install spide
  $ sudo pip3 install mfrc522
  $ sudo pip3 install requests
 $ git clone https://github.com/toyamarodrigo/integracion-proyecto1.git

 $ cd client && npm install

 $ cd server && npm install

 $ cd server && npm run dev

 # Commands for NFC reader
 # Root directory
 
 # Read Tag
 $ python3 read-nfc.py

 # Write Tag
 $ python3 write-nfc.py

 # Send to Server (http:https://localhost:3001/nfc)
 $ python3 send.py

Data from users are saved on a file.json file

[
  {
    "id": "<uuid: string | tagid: string>",
    "name": "<string>",
    "isPresent": "<boolean>",
    "date": "<Date: YYYY/MM/DD, H:mm:ss A>",
  },
]

Screenshots

Home: Home

Form: Form