/serenity-notes-backend

End-to-end encrypted collaborative notes app

Primary LanguageTypeScriptGNU Affero General Public License v3.0AGPL-3.0

Serenity Notes Backend

End-to-end encrypted collaborative notes app

https://www.serenity.re/en/notes

Security & technical details are documented at https://www.serenity.re/en/notes/technical-documentation.

Setup

yarn
yarn dev:db
# in another tab
psql
> CREATE USER prisma WITH PASSWORD 'prisma';
> ALTER USER prisma CREATEDB;
> exit
yarn prisma migrate dev

Development

yarn
yarn dev:db
# in another tab
yarn dev

Run tests

yarn test
# run single test
yarn test tests/oneTimeKey.test.ts
yarn test tests/integration.test.ts

Scripts

# create Paddle subscription
yarn ts-node-dev --transpile-only bin/paddleSubscriptionCreate.ts

License

Copyright 2021 Nikolaus Graf

Licensed under the AGPLv3