Giter VIP home page Giter VIP logo

vidcore's Introduction

How I worked on this project

My goal was to build a Video library web app and use best practices and put my React learnings for building this project.

  • Took design inspiration from dribble here are the design credits
  • Designed a Custom logo for the project in Figma
  • Went through the project planning phase by breaking project into different components & views, choosing project tooling with vite as a project bundler, TailwindCSS for styling, Redux for state management.
  • Used Youtube API V3 for getting video data, the Home page shows popular videos of US region, each video goes to a Video preview page.

How to navigate this project

.
├── public                   # static images/icons files
├── src
│   ├── assets
│   ├── components           # in this folder each entity of the UI has been broken down in to small components.
│   ├── utils                # Here we have logic of data layer, including redux state management logic, functions and custom react hooks.                
│   ├── index.css             
│   ├── main.jsx
│   └── ...
├── .gitignore
├── package-lock.json
├── package.json
├── index.html
├── postcss.config.js
├── tailwind.config.js
├── vite.config.js
├── .eslintrc.cjs
├── LICENSE
└── README.md
  • Responsive CSS using TailwindCSS can be found here
  • Used Redux for state management which can be found in utils folder.
  • No external library used for fetching data from Youtube API V3, here we have used javascript fetch API for data retrival.

Components files

Here is the detailed explaination of navigating in the components folder.

.
├── ...
├── src
│   ├── components
│   │   ├── shimmer     # contains shimmer UI components that has to be shown before data loads
│   │   ├── body        # contains components and their respective views that will change according to the routes
│   │   ├── cards       # contains cards component for different views
│   │   ├── navbar      # contains all the components related to navbar
│   │   ├── sidebar     # contains all sidebar components
│   │   ├── App.jsx     
│   │   ├── error.jsx
│   └── ...
└── ...

Why I built the project this way

  • I've used Redux for state management to separate the logic of UI layer with the data layer, by separating the concerns and for local component states I've used useState react hook.
  • For styling we have used TailwindCSS classes because it make the process of writing maintainable CSS really helpful and easier.
  • I've tried to follow the best practices for a frontend application and my react learnings to create beautiful and performant user interfaces.

If I had more time I would change this

  • add Live video watching functionality and live chat features, along with the authentication.
  • Cache the search results
  • setup continuous integration to run tests and ESLint checks on every pull requests.
  • Add end to end tests.

Available Scripts

  • After Installing all the node modules with the command in the project home directory: npm ci In the project directory you can run: npm start

vidcore's People

Contributors

itsmeishan avatar

Watchers

 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.