Smart Home Management System that keeps everyones schedules, to-do lists, and all the other chaotic parts organized.
HomeHub is a smart home management system that is designed to merge all members' schedules, tasks, and events into a centralized place so that everyone can see. HomeHub also aspires to optimize, automate, and control common household chores such as paying utilities, ordering groceries, setting timers for lights, AC, and other Wifi connected devices.
Follow the steps below to contribute to this project.
- To start, run
git pull https://github.com/cdylpp/homehub.gitinto the command line. The project will download into the current working directory. - Next take a look at the file structure. The
srcfolder is composed of server-side components, while thepublicfolder is used for client-side components. - To work on front-end development, save HTML within the
/public/pagesdirectory. Similarly, CSS style sheets and JS scripts belong in/public/cssand/public/js, respectively. - For back-end development,
/src/routesholds all the Node.js routes. The scripts directory is for helper functions and general JavaScript server code. Note, the databases are uninitialized. - To run the server make sure Node.js is installed, then navigate to the
homehub/srcfolder and runnode app.jsin the terminal. The server will start and it will be located atlocalhost:8080. - Open any browsers and navigate to the url localhost:8080. Navigate to the pages by appending the path to the url, e.g. the home page is located at
localhost:8080/pages/index.html.
After working editing the files on a local device, the changes must be pushed to the GitHub source.
- First, add all the changes made through
git add {changed file name}or to add all files from a subdirectory use the asterisks such asgit add public/pages/*which adds all files in the pages directory. - Once the files are added, commit them with the
git commit -m "Some comment"command. Ensure the comment is useful. - Finally, the files need to be pushed by calling
git push
-HomeHub Team