Coder Social home page Coder Social logo

technigo-16-24-api's Introduction

Express API Project

This weeks project was about creating my first API using Node.js and Express. My API consists of data based on a dataset from Kaggle, displaying a list of about 2500 TED-talks.

The problem

I started by get the server up and running, trying out the app.send and app.json commands. Then I went to Kaggle to try to find a dataset that allowed me to sort on multiple endpoints and also have the possibility to create a frontend page that would be nice to work with. Since the data was in csv-format, I used an online converter to convert it to json.

After importing it to my server, I started playing around with the data and to plan what endpoints to create. I added an endpoint for all talks, all talks by speaker, event and category. However, after speaking to a classmate, discussing the definition of RESTful, I decided to create endpoints to:

  • List all talks
  • List all events
  • List all speakers and
  • List all categories.
  • I also added queries to filter talks by speaker, event and one or more categories.

With some great help from Maksymilian, I managed to add multiple queries to category, and also actually filter talks by the ones who include the categories queried for.

I also began creating a frontend page, based on the API, but when using the data I realized that several parts of the data were incorrectly formatted. So, with the help from Van, I created a program that generates a new data-file based on the original data, but with the formats I wanted, and also added a unique slug and ID for each talk. In the end I had to do some additional formatting for the /categories-endpoint, due to troubles with parse and the data formatting, once again.

If I'd have more time I'd love to dive into the data even further and explore related talks, and even how to create some sort of scraper to get access to meta-images for my frontend.

TECH

  • Node.js
  • Express
  • React/JSX
  • Redux
  • Styled components

View it live

technigo-16-24-api's People

Contributors

karinnordkvist avatar idlefingers avatar emolsz avatar dependabot[bot] avatar puj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.