Skip to content

webcooltz/buddy-lamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buddy-lamp

Code for the Buddy Lamp project.

Running the server

Run locally:

  • Download this repo
  • Open the Server folder in VS Code or a terminal
  • Open the terminal
  • Run npm i
  • Run npm run start

Run on a hosted site (Render.com):

  • Go to Render.com
  • Sign up for an account
  • Go to the dashboard
  • Create a new app (web service)

image

  • Use this repo as the code

image

  • Use the "main" branch and the folder "server"

image

  • Use the Build Command npm i
  • Use the Start Command npm run start
  • Set Auto-Deploy to "Yes" (this will auto-deploy when I push changes)

image

Running the client

Installing/Running

  • Download the client repo to your Raspberry Pi
  • Alter the values (see the section below this)
  • Open a terminal, go to the directory where the file is
  • Run python main.py

Customizing

Hard-coding

  • Hard-code the values for household name and lamp color

Making requests

  • Your URL will need to be changed to your Render address (or other host address)

Releases

No releases published

Packages

No packages published