- Terminal
- Already installed on Mac/Linux
- If Terminal is disabled (e.g. by administrator), use iTerm (download) or an application with a built-in Terminal like PyCharm (available through Self Service;
Alt+fn+F12
is the shortcut for Terminal panel) or VSCode.
- If Terminal is disabled (e.g. by administrator), use iTerm (download) or an application with a built-in Terminal like PyCharm (available through Self Service;
- Use ?? on Windows
- Already installed on Mac/Linux
- Node/npm
- Download from Node website (LTS version is recommended).
- If you do not have administrative privileges, paste the following lines into Terminal:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
- If you are using an application other than iTerm/Terminal, such as PyCharm, you need to run an additional line:
if ! command grep -qc '/nvm.sh' ~/.zprofile; then command printf 'export NVM_DIR="$HOME/.nvm"; [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.zprofile; fi;
- Sanity Check: make sure
command -v nvm
outputsnvm
- Finally, to actually install Node/npm:
nvm install 16.9.1
. - Make sure
node --version
andnpm --version
work.
- Git/Python
cd ~/Documents # Navigate to Documents folder
git clone https://github.com/waylandcomputer/club-website.git # Download code from Github
cd club-website/site # Navigate to main code folder
./verify_setup.sh # Check everything is installed (only run if on school Mac)
python3 new_member_subpage.py <First> <Last> # Generate files for your own subpage
npm install
npm run serve
The website should be running at http://localhost:8080/
.
For production, replace npm run serve
with npm run build
.