GithubHelp home page GithubHelp logo

adrian-seijo / podcasterz Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 2.64 MB

This is a small podcast web app done as part of an interview process a while ago.

License: MIT License

JavaScript 71.72% HTML 12.39% CSS 15.89%
javascript vanilla-javascript web-workers offline html css itunes netlify

podcasterz's Introduction

PodcasterZ

Netlify Status

This is an exercise done as part of a selection process where the requirements were to build a web app that can show the top 100 podcasts on iTunes and play them with whatever technology you wanted. The design was provided and the end result needed to match it as close as possible.

Since it was pretty freestyle I decided to go out of the traditional stack then and use vanilla JS and added a Web Worker to explore how something like this will wokr with offline support. I added a very simple lambda to have a nice abstraction on top of the fetch so it can deal with any potential CORS issues.

The end result was pretty fun and I think the worker proved to be quite useful by improving the experience and making the app feel extrmely fast, specially on load.

Live site

The app is currently live on Netlify at https://podcasterz.netlify.app/.

Run local instance

In order to run the local the project locally it only needs to have its dependencies intall and then run the start script:

$ npm ci
$ npm start

It uses the Netlify dev server to run the lambda and the static server locally and shouled be accesible by default at http://localhost:8888/.

Please note that the service worker will be disabled in the local version fo the app in order to facilitate the development In order to test the request caching please check the live site or change the app/lib/bootstrap.js file to not ignore localhost.

Other scripts

On top of start the repo has both a lint and a test script used to do eslint and ava tests on the code. They are both invoked when build runs on netlify and used to validate the code before it gets deployed on the live site.

It also includes a lambdas one that will use netlify-lambda to transpilte the lambda code as Netlify does on their servers.

Project structure

The top level folder structure includes:

  • app - This is where the main code for the web app lives, all the UI and worker code is in there.

  • lambdas - This is where the code for the lmabdas is which is effectively a series of little proxy functions that fetch the data for the app.

  • test - This is where any integration or e2e tests will be when done plus any test utility needed for those or the unit ones.

podcasterz's People

Contributors

adrian-seijo avatar

Stargazers

 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.