GithubHelp home page GithubHelp logo

deno-tsyringe's Introduction

TSyringe on Deno

This repository shows how to use Microsoft's tsyringe on Deno, applying a DDD architecture style.

Concepts explained

  1. Import maps and Deno-friendly CDNs.
  2. Deno Configuration file.
  3. Settings for Deno extension on Visual Studio Code.
  4. Usage of tsyringe library.
  5. Implementation of an DDD Clean Architecture Boilerplate.

Codebase Structure

.
├── src
    └── application         # Layer that composes application use cases
        ├── commands        # Folder that includes the command-kind use cases
        └── queries         # Folder that includes the query-kind use cases
    ├── domain              # Business domain classes and everything that composes domain model
    └── infrastructure      # Communication with what is external of application
        └── repositories    # Connects with external data sources or services
└── test                    # Testing codebase

Usage

  1. Clone or download this repository
  2. Run deno --allow-env mod.ts.
  3. The application should finish successfully without prompting messages other than the Download messages sent by Deno.

Testing

To test this codebase, once you've already downloaded or cloned the repository, run:

deno test --allow-env

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.