First, install pnpm and Docker
pnpm install
pnpm run develop
open http://localhost:7600
To debug the NodeJS server in Visual Studio Code, first start up the database and frontend:
pnpm run dev:vscode
Then click on "Run and Debug" in VS Code, and press Start for Develop Backend.
docker-compose exec db bash
psql flax
# show tables
\dt
select * from "Nouns";
DB migrations are run automatically when you start up the server. To create a new migration, follow the instructions at https://sequelize.org/master/manual/migrations.html. The generated files need to be renamed to have the .cjs
extension since this project uses ESM by default.