0.6.0 • Published 4 years ago

@spencejs/spence-core v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

spence - an simple nodejs API Framework

Opinionated API Framework For Fastify and Postgres for FAST coding and EXTREME extensibility

CircleCI codecov Total alerts Language grade: JavaScript

Getting started:

  • creating a table
  • creating a controller
  • subscribe to changes

Philosophy

  • FP first
  • Productivity oriented
  • extensible and flexible. Easy to customize
  • Scalable - monolith are easy, microservices made fun
  • Best practices
    • schemas & comprehensive integration tests are the most effective ways to document and create a maintainable system
  • Performance is important
  • ORMs - only change a db for specialization reasons. The native query language is usually the best What is familiar but of no benefit:
  • DI - (mocking can be done in other ways)
  • Classes - (statics, singletons pointless)

Controllers

  • adding extra routes
  • multitenant support

Events

  • why are events important?
  • monoliths
  • rabbit
  • redis
  • errors

Auth

  • api tokens
  • oauth
  • userId

Errors

  • errors & error handling
  • the importance of error reporting & aggregation

Database

  • finders
  • db configuration
  • creating an effect extension

Testing

  • jest only
  • factories & testing