module
Version:
v0.0.0-...-d270eb1
Opens a new window with list of versions in this module.
Published: Nov 19, 2024
License: MIT
Opens a new window with license information.
README
¶
QuoteSky
| Drawing |
 |
Protocol
QUOTE:POST – Posts a random quote.
QUOTE:GET – Gets a random quote.
QUOTE:LIST – Lists all quotes.
QUOTE:ADD <quote> – Adds a new quote.
QUOTE:REMOVE <quote> – Removes a quote.
QUOTE:UPDATE <quote> – Updates a quote.
Setup
- Clone the repository
- Create a
.env file in the root directory and add the following:
touch .env
echo "BLUESKY_HANDLE=<your_handle>" >> .env
echo "BLUESKY_PASSWORD=<your_password>" >> .env
Running the project
- Install the dependencies
go mod download
Build the project
mkdir -p tmp
go build -o ./tmp/quotesky ./...
Run the CLI
./tmp/quotesky --help
Directories
¶
|
|
|
|
|
|
lib
|
|
api
Request types and handlers
|
Request types and handlers |
|
|
Database connection |
|
|
|
Click to show internal directories.
Click to hide internal directories.