Backend in NodeJS - Express. WIP
- NodeJS >= 11.0
A development.js is required in the config folder.
npm run create-model <model-name> <table-name>
Example
npm run create-model postModel posts
To create a migration, run:
npm run create-migration
a .sql file will be created in migrations/sql.
To run the pending migrations, run:
npm run run-migrations
All the migrations will be applied if you run npm start.