Skip to content

thxv3n0lvl/lighter-farm

Repository files navigation

Nest Logo

A lighter LiteFarm spinoff built with NestJs and the Hexagonal Architecture.

Description

This repo is not an official LiteFarm project but a personal migration to use a different set of tools and demostrate how cute the Hexagonal Architecture looks when it's used with NestJs and TypeScript.

Objectives

  • use Hexagonal Architecture and Ports and Adapters
  • use NestJs / TypeScript
  • reduce the amount of endpoints than the original project
  • create a structured DB with standardized set of practices throughout its assets
  • generate unit and component tests with enough functional coverage

Out of scope

  • a 1:1 migration from the actual LiteFarm backend but a rewrite version using different practices and tools
  • make it useful with the frontend

Installation

# spin up the DB using docker
$ docker compose up  
$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Documentation

Documentation is generated through Swagger, first run locally the project and then go to http://localhost:<port>/api

Support

Please give some love and support to LiteFarm project

Stay in touch

License

lighter-farm is MIT licensed.

About

LiteFarm spinoff (unofficial rework) for personal use and learn.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published