-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdev_install.sh
More file actions
24 lines (19 loc) · 835 Bytes
/
dev_install.sh
File metadata and controls
24 lines (19 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
#This file (sort of) sets up a dev environment for shelflife. Have fun!
#Install MongoDB
echo Installing MongoDB...
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl enable mongod && sudo systemctl start mongod
echo Installing Rust Toolchain...
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
echo Install build deps
sudo apt install -y build-essential libssl-dev pkg-config
#git clone http://www.github.com/willnilges/shelflife
#cd shelflife
cp .env.sample .env
cargo build
echo Repo cloned! Please fill out the .env file!