Skip to content

An example project to show separation of business logic from the chosen server framework.

Notifications You must be signed in to change notification settings

KingTayTay/server-business-logic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Business Logic

An example project to show separation of business logic from a chosen server framework.

Frameworks

  • Express
  • Hapi
  • Fastify
  • GraphQL

Running

yarn
# For Express
yarn start-express
# For Hapi
yarn start-hapi
# For Fastify
yarn start-fastify
# For GraphQL
yarn start-gql

About This Project

This project is used as an exercise in separating the core business logic of a server from the server framework. The project also makes use of dependency injection for dependencies of the business logic, eg. dbClient. Building the server in this way allows for easy testing, better code reuse, and the ability to use multiple server frameworks at a time.

License

Unlicensed

About

An example project to show separation of business logic from the chosen server framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published