Skip to content

Showcase for a fullstack app to control a raspberry pi - Front-end (React) / Server (Python: Flask+RPi.GPIO)

License

Notifications You must be signed in to change notification settings

nongnoochr/fullstack-rpi-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fullstack Raspberry Pi App fullstack-rpi-app

How-to start the app

  1. Clone this repository

  2. (Optional but recommendend) Create a virtual environment from the root project and install the required python requirements in the newly created virtual environment

$ cd fullstack-rpi-app
$ python3 -m venv my_venv 
$ source my_venv/bin/activate 
(my_venv) $ pip3 install -r requirements_rpi.txt

Note that

  • If you install this project on a raspberry pi - use requirements_rpi.txt
  • If you would like to try this app out on your computer (not a raspberry pi) - use requirements.txt
  1. Spin up the server using the following command:
(my_venv) $ python server.py
  1. Launch the app in a browser using the following url:
http://localhost:5000

Note that

  • If you are running the app on your computer (not a raspberry pi), random data will be shown on the app
  1. (Optional) you can deactivate the virtual environment using the following command:
(my_venv) $ deactivate
$ 

About

Showcase for a fullstack app to control a raspberry pi - Front-end (React) / Server (Python: Flask+RPi.GPIO)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published