This project was my Master JavaScript project to culminate everything
I have learned and apply them while creating something I could call my
own, something that was in my personal interest. So I started making
an E-Commerce store, but the theme would be based entirely on what I
would sell if I was a scuffed Bezos, so here we are
Kashin's Art
House.
The project's idea was to create an art store and have it's products
be displayed using an API while having the functionality of adding
items to cart without using any PUT, POST, DELETE methods for API
calls. This idea required me to setup all cart functionality to work
through local storage and not require too much of a database with
multiple calls.
But, my products (ARTWORK) still required a database for the API to
make calls from and at the least display the products from a database.
This required me to learn how to use
AirTable.
Airtable gave me a so called data "base" along with their own API
setup to make calls and receive JSON data for items I setup. After a
few hours of learning AirTable Base setups and how to use AirTable
APIs using
Postman, I
started building my Art-House.
The above setup was done on the AirTable Base where I have setup
multiple fields to send specific data like
Artist, Color, Type
for each item on the base. The item is sent in clear JSON data from
the API that is provided by Airtable for free.
The Airtable API is pretty straight forward to understand. Airtable
provides a special API key along
with Base key to setup for the API
calls. Each item is provided a specific ID which airtable will
retrieve if used in the API making the single product page possible.
Airtable API
Once the API was setup and I was getting my json data, the rest of the
site was just manipulating the JSON data to create a full setup. By
just sending all JSON data I received into local storage, I was able
to rely entirely on just local storage to retrieve and use all the
necessary data for cart functionality.
The rest is just basic vanilla JS coding, but it all gets boring at
one point, so I created a small side project. For such special final
project, it required special attention. It was time to create my own
LOGO. And so the nav-logo you see at the top of this website was created
using Photoshop, it was just a distraction to take my mind off the
hours of coding that became tedious at times.
It may not be the amazing design everyone was hoping for, but
everything looks better in your head until you try to make it a
reality.