General setup - sardothien/BuyAndDrive Wiki

Database migrations

If you want to change database structure you should create new migration file by running npm run create-migration-skeleton while inside the server folder and immediately renaming it to something meaningful.

Server will automatically apply all pending migrations when it's started. If you want to delete all tables from the database run npm run drop-all-tables.

It's strongly advised that you use some kind of GUI client for connecting to the database (e.g. TablePlus).

Code editor settings

It's advised that you use VS Code for development, if you decide to do that please install EditorConfig, this will automatically pick up settings from .editorconfig file and apply it to this project.

This is done so we are sure that whole team has same editor settings in order to improve readability and avoid unnecesarry code changes.