Repository for group 1's website for CSE 125 2024.
Render Markdown as HTML for content pages:
$ npx tsx content/build.tsI recommend editing the website over SSH. This way, we can see updates live.
To connect, do
$ ssh -p222 <username>@cse125.ucsd.eduYour default password is your PID, but that won't work in a few weeks.
As we learned in CSE 15L, use an SSH key by first creating a .ssh directory.
username@cse125:~$ mkdir .sshThen, disconnect from SSH and copy your public SSH key to the remote server.
$ scp -P 222 ~/.ssh/id_rsa.pub <username>@cse125.ucsd.edu:~/.ssh/authorized_keysYou can also add an alias the SSH server. On your machine, add the following to ~/.ssh/config:
Host cse125
HostName cse125.ucsd.edu
User <username>
Port 222With VS Code's Remote-SSH extension, you can then select cse125 from the remote explorer. Then open /var/www/html/class/cse125/www/2024/cse125g1 and edit away.
I recommend using nvm to install Node.
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bashThen create ~/.bashrc and put this in it:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvmThen, restart your terminal and install Node.
$ nvm install node