Coder Social home page Coder Social logo

podstation / podcastindex-web-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from podcastindex-org/web-ui

0.0 0.0 0.0 9.47 MB

Upstream fork of web-ui on podcastindex-org

License: MIT License

HTML 33.61% JavaScript 12.14% CSS 1.46% TypeScript 40.84% SCSS 11.95%
upstream-pr-fork

podcastindex-web-ui's Introduction

PodcastIndex Web UI

Podcast Web UI is a project that houses the code for the React app and express server for podcastindex.org.

  • Landing page for PodcastIndex.
  • Search for podcasts in index.
  • Simple podcast player for listening
  • List of apps using the PodcastIndex
  • Documentation and developer login for credential management

Project Structure

The project is split into two folders, ui, and server.

.
├── ...
├── ui
│   ├── public      # Static files for index.html and favicon
│   ├── fonts       # Fonts used in the UI
│   ├── images      # Images and icons that are part of the UI
│   └── src         # All React and client code
├── server
│   ├── assets      # static files that are dynamically updated
│   ├── data        # static data files (ie. json) that are dynamically updated
│   └── index.js    # express app that serves the UI and is a reverse proxy (replaces need for NGINX)
└── ...

The folder ui houses all the React and client based code and assets.

The folder server houses all of the API, static server data, and the reverse proxy to the PodcastIndex API using comster/podcast-index-api.

Server data and assets

The reason to build a custom express server for serving React and other data is due to the need for script updated .json files and dynamically adding apps to the /apps page. This data should not be bundled with the client compiled code.

CORS

The custom express server also is used to reverse proxy requests through the same domain to prevent CORS issues. Using the same domain to server up the UI content and to send api requests prevents CORS issues in modern browsers.

Getting Started

Set .env

You should see a .env-example file. Copy this and remove the -example. The file .env is ignored by GIT and is needed to set the API_KEY, API_SECRET, API_ADD_KEY and API_ADD_SECRET variables

Starting the dev server

In order to have the UI hot reload for development, we utilized webpack-dev-server this allows for easier debugging, etc. In order for the dev-server to connect to the API, you must first have set the .env file variables and have started the server with yarn start

# Install dependencies
yarn install

# Start dev server
yarn dev

# Start the node server in another terminal window.
yarn start

Running production

To start the server, simply run after setting the .env file

Note: Make sure to set NODE_ENV=production in the .env file

The below script will compile the code and then start the node server.

npm run build
npm start

Tech List

TODO

  • Font should load through webpack properly
  • Better image loading handling in the search results page.
  • Developers page and login

podcastindex-web-ui's People

Contributors

daveajones avatar comicstrip avatar dellagustin avatar stevencrader avatar drunkplato avatar benjaminbellamy avatar thebells1111 avatar mitchdowney avatar nathangathright avatar merryoscar avatar joksas avatar montekaka avatar ericpp avatar jamescridland avatar ltaupier avatar yulafezmesi avatar brianoflondon avatar satoshisstream avatar valcanobacon avatar pbaveja avatar georgel9 avatar dwvisser avatar albertobeta avatar francosolerio avatar mkadin avatar ruisalgado avatar scottmathson avatar saerdnaer avatar ibz avatar tombarr 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.