Git Product home page Git Product logo

oop-practice's Introduction

TLDR

Use of this starter template assumes that you have a 'complete dev environment' setup - a terminal, Node, VS Code, at least. If not, you may want to start here.

  1. Click that big green button to start using it.
  2. clone your new repo from your GitHub to your local computer
  3. cd into the cloned repo and enter: npm i.

Node Starter

What's Included

  • code style: prettier
  • Code Style. I have adjusted this slightly as per this commit. More may be forthcoming as feedback and PRs trickle in.
  • husky is also there to help check over code quality with the linters b4 there is a successful commit.
  • webpack to allow the use of modern EcmaScript Modules
  • Various VS Code 'settings' and 'extensions.' Look in the bottom right when you open this up in VS Code to install them.
  • Kite ๐Ÿช is also included. I personally recommend it, but it's certainly not compulsory to set this up.
  • Directories ๐Ÿ“‚ with 'index.js' files as a suggested architecture. See comments in those files for addl. info.

How To Use

Run npm i to get all the things installed.

Ideally, you'll run this from 2 different terminal instances.

In one terminal, you do: npm run watch. This will watch the files in src. This is where you would do your coding.

In the other terminal: npm start. This will execute the dist/main.js that webpack builds for you.

Essentially, you just code and if you've set all the things up correctly, you will get alerted whenever there is something 'bad' in your code based on some industry-standard best practices ๐Ÿฆ„.


Don't 4get to drink your Ovaltime update "name", "description", "author", etc. in 'package.json' when using this for your stuff.


['webpack.config.js'] is configured to allow 'absolute imports.' This means that, for example in 'index.js,' you could do: import api from "api";, w/o worrying about ../ spit.

Note that you may still see warnings about 'unsresolved imports' as 'ES Lint' is not able to tell that we have 'webpack' taking care of 'absolute' imports. To avoid this, see here

๐ŸŽถ

Questions/Issues

Use the 'comments' section of the Dev post for โ“s or discussion.

If it's an actual issue... open 1.

Contributions welcome. No specific guidelines at this point - just common sense - specific tasks, good commit messages, etc. Feel free to LMK of any doubts or queries.

I do prefer commit messages that use gitmoji. Also, using those sort of helps with 'categorizing' and 'separating' commits appropriately.

oop-practice's People

Contributors

serenarh 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.