DEV Community

Saalik Lokhandwala
Saalik Lokhandwala

Posted on

2 1

Side Project Journal: An Inspirational Quote API

TL;DR - Spark is a dead-simple GraphQL API of inspirational quotes meant to inspire and move end-users.

Check it out here: https://github.com/SaalikLok/Spark-API

In some of my projects, I've thought about using a quote API to get inspirational quotes and include them in loading screens, etc. When I couldn't find an API that did exactly what I wanted, I realized that I'd be better off making my own!

Spark is a project that I've started, stopped, and restarted with a new set of tools and motivation several times. I tried with Express and MongoDB, which ended very early. I finished a version of Flask and a MySQL database, running locally, but it was a pain to push to production and felt like overkill.

I'm happy that this time, I was able to create a static version of this with GraphQL, without the need for the database or any fanciness. And it's great that the API gets all the perks of using an awesome technology like GraphQL.

As I'm deepening my full stack React knowledge, GraphQL is a critically important tool in the ecosystem. I realized that building a simple static API for quotes would be a great entry point to this.

It's hosted using the Heroku free account (for now) but we'll see if there's some interest and usage!

If people (or myself) start using the API more regularly, I'll add more quotes to it and ultimately throw a bit of money at Heroku to make it more performable.

If you're a developer, I'd love to hear your thoughts and any feedback you have on the project.

There are a few more fun things in store on the horizon, which I'm super excited to share soon.

This was originally posted on my blog: https://blog.saaliklok.com/

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs