Using an ubuntu-18.04
vagrant box, which is named bento/ubuntu-18.04
.
First step is to install nodejs
and yarn
automatically
sudo apt install -y nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install -y yarn
sudo apt install -y postgresql
cp -R /vagrant/* ~/
cd ~
yarn
sudo -u postgres psql -c "create user celluloid with encrypted password 'USE_A_STRONGER_PASSWORD';"
sudo -u postgres psql -c "alter user celluloid with SUPERUSER;"
sudo -u postgres psql -c "create database celluloid with owner celluloid;"
cp sample.env .env
cd bin
./create_schema.sh
cd ..
yarn build
yarn start