Skip to content

Lawrence Dev Notes

Lawrence Kesteloot edited this page Jan 10, 2022 · 2 revisions

Create new Linode

  • Ubunbu 18.04 LTS (recommended by readme).
  • In Fremont, CA.
  • Shared CPU Linode 2 GB ($10/mo).
  • Linode label: RootsOfProgress
  • No tags.

Set up user

  • ssh root@IP_ADDRESS
  • adduser lk
  • usermod -aG sudo lk
  • Make new ssh keys, upload to github.

Install Mongo

wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl start mongod

Clone tree

git clone git@github.com:Progress-Studies-Forum/ForumMagnum.git

Install node

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
cd ForumMagnum
nvm install

Run web app

npm install -g corepack
corepack enable
yarn install
yarn start

Hit http://IP_ADDRESS:3000/

Alternative Docker instructions

sudo apt-get install docker.io
sudo docker build .
export MONGO_URL=mongodb://docker0:27017
sudo docker run --net=host <HEX OF NEW BUILD>

Hit http://IP_ADDRESS:3000/

Clone this wiki locally