Code for Charlottesville version of Piedmont Native Plants DB
Below describes how to get the web application running for development
cd ./frontend
npm run start
cd ./backend
npm run start
- Make sure Docker Desktop is installed
- Run
docker compose build
in root directroy - Run
docker compose start
to 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.json
is located in/var/hooks
and defines the ID of the WebHookredeploy.sh
is located in/var/scripts
and defines the script that runs on successful WebHook request
wget https://dl.google.com/go/go1.17.7.linux-amd64.tar.gz
tar -xzf go1.17.7.linux-amd64.tar.gz
mv go /usr/local
export GOROOT=/usr/local/go
export GOPATH=$HOME/Projects/Proj1
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
go version
cd /usr/local/go/bin
go install github.com/adnanh/webhook@latest
go 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