igor-toporet / clean-arch-in-node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

An example of Clean Architecture principles applied to a REST API back-end service in Node.js and TypeScript.

Getting Started

Build and Test

  1. npm i (shorthand for npm install)
  2. Create a PostgreSQL database "clean-arch-demo"
  3. Setup connection details in src/Gateways/PostgreSQL/Bootstrap.ts
  4. Hit F5 from VSCode or npm start
  5. Make API calls with your REST client of choice (https://www.postman.com/ or https://insomnia.rest/)
    • or use the REST Client VSCode extension (you'll be prompted to install it on the very first workspace load)
    • go to rest-client top-level folder and look at any of the .http files

Contribute

Send us pull requests 😄

About

License:MIT License


Languages

Language:TypeScript 99.2%Language:JavaScript 0.8%