Code for Charlottesville version of Piedmont Native Plants DB
Below describes how to get the web application running for development
cd ./frontendnpm run start
cd ./backendnpm run start
- Make sure Docker Desktop is installed
- Run
docker compose buildin root directroy - Run
docker compose startto run the application containers
- Make sure to download Docker
Our host compute instance uses webhook to automatically listen for updates to this repository's master branch.
hooks.jsonis located in/var/hooksand defines the ID of the WebHookredeploy.shis located in/var/scriptsand defines the script that runs on successful WebHook request
wget https://dl.google.com/go/go1.17.7.linux-amd64.tar.gztar -xzf go1.17.7.linux-amd64.tar.gzmv go /usr/localexport GOROOT=/usr/local/goexport GOPATH=$HOME/Projects/Proj1export PATH=$GOPATH/bin:$GOROOT/bin:$PATHgo version
cd /usr/local/go/bingo install github.com/adnanh/webhook@latestgo build github.com/adnanh/webhook
- Log in to host
- Authenticate as root user
sudo service webhook status
- Log in to host
- Authenticate as root user
sudo systemctl start webhook.service