Git Product home page Git Product logo

media-manager's Introduction

Media Manager

An application to automate managing and downloading entertainment media.

Frontend

  • React
  • ReduxToolkit
  • TypeScript
  • CSSModules
  • SASS
  • TailwindCSS

Backend

  • Django
  • DRF
  • python-qbittorrent
  • gdriveTorrent

Services

DevOps

  • webpack

Notes

Frontend Boilerplate

webpack - Getting Started

  1. Install webpack and webpack-cli

    • npm i webpack webpack-cli
  2. Install eslint locally

    • npm i -D eslint
    • configure eslint with eslint --init
  3. Change package.json to:

    • add "private": true
    • delete "main": "index.js"
  4. Add /dist directory and move index.html inside it

  5. Install lodash

    • npm i lodash
  6. Create initial bundled main.js

    • npx webpack
  7. Run bundler with a specified config file

    • npx webpack --config webpack.config.js
  8. Add npm script to package.json to launch bundler

    • "build": "webpack"

webpack - Asset Mangement

  1. Install style-loader and css-loader

    • npm i -D style-loader css-loader
  2. Install file-loader for images and fonts

    • npm i -D file-loader
  3. Install csv-loader for csv files

    • npm i -D csv-loader

webpack - Output Management

  1. Adjust file-loader config to deliver processed resources inside of assets folder

    • { test: /\.(png|svg|jpg|gif)$/i, loader: 'file-loader', options: { name: 'assets/images/[name].[ext]' } },
    • { test: /\.(woff|woff2|eot|ttf|otf)$/, use: { loader: 'file-loader', options: { name: 'assets/fonts/[name].[ext]' } }, },
  2. Adjust entry point config to allow for bundle splittting

      entry: {
     app: './src/index.js',
     print: './src/print.js',
    },
    output: {
     filename: '[name].bundle.js',
     path: path.resolve(__dirname, 'dist'),
    },
  3. Install HtmlWebpackPlugin (autogenerates index.html and links to bundled resources)

    • npm i -D html-webpack-plugin
  4. Keep /dist clean with clean-webpack-plugin

    • npm i -D clean-webpack-plugin

media-manager's People

Contributors

cesarnml avatar

Watchers

James Cloos avatar  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.