Git Product home page Git Product logo

dependencies-injection's Introduction

The Dependency Injection Course - Practical Challenge

Description

This is a simple project written in vanilla JS TypeScript for learning how to work with dependencies using an IoC container.

Task Description

For passing the practical part, you need to update the project using IoC Container. IoC Container is already created, so don’t worry just use it.

The project contains three services: Logger, HTTP, and Users.

  • Logger doesn’t have any dependencies.
  • HTTP service has Logger and config as dependencies.
  • Users class depends on HTTP and config.

To complete the task, you have to perform the following steps:

  • fork this repo;
  • check ioc-lite library documentation;
  • rewrite project to automate manage dependencies with IoC Container;
  • create a PR in your own repo and send the link to the course professor;

Hints:

  • there is already created ioc file;
  • you need to specify the static property $inject in classes to define dependencies;
  • again, read the documentation;
  • change the code only in the src folder;
  • in case any questions please reach out to Nazar Bulych;

Running project

  • $ yarn install
  • $ yarn start
  • Navigate to localhost:8080 (you can change the port in config.json)

dependencies-injection's People

Contributors

nazar-bnm 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.