quotes-generator Svelte Themes

Quotes Generator

A simple web application for generating inspirational quotes provided by ZenQuotes API

Quotes Generator


A simple web application for generating inspirational quotes provided by ZenQuotes API built with

svelte


yt


❯ Usage

I start learning the most beloved framework Sveltekit and that's what i'm using in the frontend

API

You can make a GET request to https://quotes-generator-plum.vercel.app/api/generate, to get a random quote in json format

curl --request GET \
  --url 'https://quotes-generator-plum.vercel.app/api/generate'

Example response

[
    {
        "q": "To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment.",
        "a": "Ralph Waldo Emerson",
        "h": "<blockquote>&ldquo;To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment.&rdquo; &mdash; <footer>Ralph Waldo Emerson</footer></blockquote>",
    }
]

Development

Once you've cloned the project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev
# or start and open the app in a new browser tab
npm run dev -- --open

Production

npm run build

You can preview the built client app with npm run preview,This should not be used to serve your app in production.


❯ About

Contributing

Pull requests and stars are always welcome. For bugs and features requests, please create an issue.

Author

Ysn4Irix


❯ License

Copyright © 2022-present, Ysn4Irix. Released under the MIT License.

Top categories

Loading Svelte Themes