Skip to content

diogoaduartereis/LAPD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

LAPD

Instructions for installation and use

In the source folder, there are different folders for the frontend and backend of our project.

1) Frontend

On the first run, in the frontend/the-starter-app folder, you must install the dependencies:

$ npm install

To run the app:

$ npm start

The expo tool will be started, and the project can be scanned with the provided QR code in a mobile phone.

It is also possible to run on an Android or iOS simulator.

2) Backend

On the first run, in the backend folder, you must install the dependencies:

$ npm install

To start the server:

$ node server.js

Notes:

In the backend folder, the .env file defines the PORT where the server will run. In the fronted folder, the App.js file defines the SERVERIP, the address where the backend will be running.

The server will be running on a raspberry pi. A led and the htu21d sensor must be connected. The led is expected to be connected in GPIO port number 18, and this default can be changed in the pump.py file, located in the scripts folder.

To run locally, connect both the app and the raspberry pi to the same network. Using ifconfig command on a terminal, the local ip address of the raspberry pi can be found, and used in the app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •