Skip to content

randreu28/quote-generator

Repository files navigation

Quote generator

This is a Quote generator using the Deno KV, as part of the Deno KV Hackaton. Feel free to check it out!

External API's

This project depends on two external API's:

  • The Github's RESTFul API for users, as it is used for authentication purposes.

  • The Ninja's Quote API, which is used to get all the random quotes.

    Both API's require secret API Keys that are not included in the repository. In order to develop locally, it is required to have am .env file that looks like this:

    GH_CLIENT_ID="your-secret-github-client-id"
    GH_CLIENT_SECRET="your-secret-github-client-secret"
    API_KEY="your-secret-ninjas-api-key"

Usage

To start the project, you'll need installed the Deno CLI, as project uses the Fresh framework and the Deno runtime.

deno task start

This will watch the project directory and restart as necessary. Notice that this runs with the --unstable flag, which allows us to use the (currently on beta) KV Deno database.