Skip to content

Nodejs Clean Architecture starter project, Using Express + Typeorm

Notifications You must be signed in to change notification settings

Z3r0J/nodejs-clean-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awesome Project to get started with Clean Architecture (NodeJs)

+ +


This is a starter project for building Node.js applications using clean architecture principles and TypeORM.

Getting Started

Prerequisites

  • Nodejs 16.x or later
  • npm or yarn
  • your prefer database: mysql, mariadb, postgres, sqlite, mssql, oracle

Installation

  1. Clone this repository

    git clone https://github.com/Z3r0J/nodejs-clean-architecture.git <your-project-name>
  2. Install the dependencies

    cd <your-project-name>
    npm install or yarn install
  3. Database Configuration

    Create an .env file base on the .env.example file

    cp .env.example .env

Usage

  1. Start Application

    npm start
  2. Go to https://localhost:3000/

Project structure

.
├── src/
|   |--application/         #
|   |   |--dtos/            #
|   |   |--helpers/         #
|   |   |--interfaces/      #
|   |   |--services/        #
|   |--config/              #
|   |--domain/              #
|   |   |--entities/        #
|   |--error-handling/      #
|   |--infrastructure/      #
|   |   |--repositories/    #
|   |   |--typeorm.config.ts    #
|   |--interfaces/      #
|   |   |--controllers/     #
|   |   |--middlewares/     #
|   |   |--routes/     #
This project was made with TypeORM and Express to get done the clean architecture with NodeJs

     

Made with ❤ by Jean Carlos Reyes