cd /opt && sudo git clone https://github.com/sharkpick/ChristmasList
cd ChristmasList && go build
./christmaslist
this will get you to the basic running version. It uses a sqlite3 database on the backend which it will create. you do not need sqlite3 installed on the machine (but will need to download some dependencies for dealing with the database anyhow - see the go.mod file and read error output during go build
step to see which packages you're missing. install them with go get -u <packagename>
)
- change the christmaslist.service file
- under [Service] change User to the desired username
- under [Service] change ExecStart and WorkingDirectory to point to the correct directory, if you chose an alternative install location.
sudo cp christmaslist.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start christmaslist.service
- optional: enable (automatically restart at reboot):
sudo systemctl enable christmaslist.service
- from the index page (http://localhost:8080/) select "Add Gift", and type their name into the text box.
- (optional) - add information about a gift for their wishlist.
- from the index page (http://localhost:8080/) or the general gifts page (http://localhost:8080/giftlist) select the desired user, find the item in question and click "toggle <item name>"
- from the index page (http://localhost:8080/) or the general gifts page (http://localhost:8080/giftlist) select the desired user, find the item in question and click "delete <item name>"
- just can't make it work? from the index page (http://localhost:8080/) or the general gifts page (http://localhost:8080/giftlist) select the desired user, and click "Delete <user name>"
- from the index page (http://localhost:8080/) right-click "export plain text" and select "save target link", then save it to the desired location.