Smith-Pad Subjects engages students with tactile learning.
- python-flask
- ollama
sudo pacman -S python-flask
sudo pacman -S dialog
brew install dialog
In this section, we are going to be talking about some ways to setup, install, debug, and compile SASS on macOS
-
Make sure you have Brew installed on macOS
-
brew install sassc
-
Then you make sure that sassc does work by using this command:
sassc
Caution
This part is not really stable
In this section, we are going to be talking about some ways to setup, install, debug, and compile SASS on Windows. On Windows the implementation of installing dependencies to get SASS to work may be different.
So here are the instructions on how to do it.
On Node.js implementation, here are the steps to install SASS.
-
Download the Node.js package for Windows from the Website
-
Make sure the node.js works by using CMD or Powershell
-
In the CMD or Powershell use this command:
npm install -g sass
-
In the CMD or Powershell, use this command:
sass
to make sure it works properly.
- Creating Scripts to make it more efficient to maintain the Subjects feature of the Smith-Pad platform
Important
These instructions may not be accurate yet. And this section, is subjected to change.
Caution
This part is not really stable
In this subsection, we are going to be talking about experimenting Subjects on WSL. This is experimental.
In this section, we are going to be talking about setting up dependencies for running Subjects and developing it on WSL Ubuntu.
Note
This talks about setting up dependencies for running Subjects and developing it on WSL Ubuntu.
Here is how to get started on that:
-
sudo apt update
-
sudo apt full-upgrade
-
sudo apt install neofetch
-
sudo apt install fish
-
sudo apt install micro
-
sudo apt install python-flask*
Here are some common issues when using Ubuntu WSL
- When running Flask, the default loopback address that is set to is
127.0.0.1:5000
which DOES NOT go out of the container
Here are the solutions
-
In the
index.py
file, you need to change the IP address loopback from127.0.0.1:5000
to0.0.0.0
. This is how you change it. By default, the loopback port number is 5000.if __name__ == '__main__': app.run(host='0.0.0.0')
In this subsection, we are going to be talking about experimenting Subjects on Ubuntu Multipass. Ubuntu Multipass is useful if you are developing Subjects on macOS.
Here is how to get started on that:
brew install multipass
multipass launch
multipass shell <name>
sudo apt update
sudo apt upgrade
sudo apt install neofetch
sudo apt install python-flask*
Here are some common issues when using Multipass
- When running Flask, the default loopback address that is set to is
127.0.0.1:5000
, which DOES NOT go out of the container
Here are the solutions
-
In the
index.py
file, you need to change the IP address loopback from127.0.0.1:5000
to0.0.0.0
. This is how you change it. By default, the loopback port number is 5000.if __name__ == '__main__': app.run(host='0.0.0.0')
-
Then in the macOS side, in the terminal you need to use this command:
multipass list
-
Look the IP address of the container that you used and installed Subjects on to it, and then use this command:
chromium --kiosk <ip_address>:5000