A lighter LiteFarm spinoff built with NestJs and the Hexagonal Architecture.
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.
- 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
- a 1:1 migration from the actual LiteFarm backend but a rewrite version using different practices and tools
- make it useful with the frontend
# spin up the DB using docker
$ docker compose up
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Documentation is generated through Swagger, first run locally the project and then go to http://localhost:<port>/api
Please give some love and support to LiteFarm project
- Author - Alan Trevino
lighter-farm is MIT licensed.