-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ORM Models for Inventory #16
Conversation
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
…th webpack Had to manually import pg and set it as the dialectModule Signed-off-by: Milan Gruner <milangruner@gmail.com>
Using env directly is recommended for newer NextJS versions Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
…into feature/inventory-crud
Signed-off-by: Milan Gruner <milangruner@gmail.com>
…st into feature/inventory-crud
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get an error when running the migrations.
== 20230728183114-Init: migrating =======
ERROR: require() of ES Module /Users/evanp/Documents/GitHub/CityCatalyst/app/migrations/20230728183114-Init.js from /Users/evanp/Documents/GitHub/CityCatalyst/app/node_modules/umzug/lib/migration.js not supported.
20230728183114-Init.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead rename 20230728183114-Init.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/evanp/Documents/GitHub/CityCatalyst/app/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
I'll see if I can fix it.
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Signed-off-by: Milan Gruner <milangruner@gmail.com>
Fix migrations
Fix errors when using sequelize with webpack
Replace use of deprecated
serverRuntimeConfig
with direct usage ofprocess.env
Create hello world route /api/v0/
Add Node Test Runner (execute with
npm run test
)Add tests that check uniqueness constraints on
City.locode
andUser.email
Implement CRUD API routes for inventory and city