Link to Python Scripts: https://github.com/carmen-chau/StreetWhisperCode
pages
: Contains HTML files, which holds the main content of the app.src
: Within this folder are thecss
folder (contains CSS stylesheets for the HTML files),scripts
folder (contains TypeScript (.ts) files or JavaScript (.js) files), andimg
folder (contains images used in the HTML files and app)
Current Structure of src folder
├── css
│ └── style.css
├── img
└── scripts
├── main.ts
├── preload.ts
└── renderer.js
This app is currently built with Electron. Please note that the following command has only been tested on MacOS:
- Open your terminal
- In order to run the app from the code, you will need to install Node.js. To install Node.js, there are multiple ways to install it, take a look at the following website:
- If you decide to install Node.js through the command line, keep in mind that some of the commands listed on the Node.js website above might require you install other Package Managers before using the command (Ex: You will need to install Homebrew before you can use the command:
brew install node
). - Make sure you installed the latest version of Node.js, you can check your version with the following command:
node -v
- With Node.js installed, it comes with NPM, which would contain commands that will allow to run the app on your computer from the code.
- To run the app locally:
cd
is a command used that will allow you to move between directories. We will use the commandcd
to eventually end up in the street-whisper-app folder. To do this locate where the street-whisper-app folder is on your computer.- Example: Say the
street-whisper-app
folder is located in your GitHub folder, which is in your documents folder on your computer, this would be the order of commands you will enter (Note: you enter after writing every command):cd documents -> cd GitHub -> cd street-whisper-app
.
- Example: Say the
- If this is your first time running the app, install the dependencies in the street-whisper-app folder using the following command:
npm install
- From there enter the following command:
npm start
to start the app.