- 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+F12is 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 nvmoutputsnvm - Finally, to actually install Node/npm:
nvm install 16.9.1. - Make sure
node --versionandnpm --versionwork.
- 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.