Command line tool for CRUDing book JSON data.
Clone the repo.
git clone https://github.com/cameron-yee/book-list.git
Set up GitHub user.
touch .env
Add NAME
, GITHUB_USER
, GITHUB_PASSWORD
, and EMAIL
environment variables to .env
.
Delete and create new files called books.json
, users.json
, and reading-lists.json
to start with new data.
The files need an empty array to be valid JSON.
rm books.json && echo "[]" >> books.json
rm users.json && echo "[]" >> users.json
rm reading-lists.json && echo "[]" >> reading-lists.json
Build the package.
go build
Add a symlink for the executable.
sudo ln -s <PATH-TO-CLONE>/book-list /usr/local/bin/booklist
Run commands.
booklist help