hiyaryan / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
3 stars 0 forks source link

Migrate db.js to TS with unit tests. #159

Closed hiyaryan closed 1 week ago

hiyaryan commented 2 weeks ago

This PR migrates db.js to TS, db.ts, and adds unit tests. The follow changes have been made

All unit tests pass using npm run test. The application runs in the container as expected and connects to the corresponding environment database using db.ts.