cognovi-ai / 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 and reframing distorted thinking when you've been thinking this way your whole life. The CDJ can help with that 🧠✨ -- v2 is in development!
https://thecdj.app
3 stars 0 forks source link

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

Closed hiyaryan closed 2 months ago

hiyaryan commented 2 months 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.