@btdrawer/divelog-server-core

Common code for divelog-server-rest and divelog-server-graphql.

Usage no npm install needed!

<script type="module">
  import btdrawerDivelogServerCore from 'https://cdn.skypack.dev/@btdrawer/divelog-server-core';
</script>

README

divelog-server-core

Common code for divelog-server-rest and divelog-server-graphql.

This package sets up the connection to MongoDB and Redis, and provides an API for communicating with both.

It also includes some other common utilities:

  • Authentication utilities
  • Constant values (error codes, names of resources, subscription keys)
  • Database seeder (for unit tests)