-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
feat: development server #2448
feat: development server #2448
Conversation
|
Seams pretty cool from a first look, i ll look at deeper next week 💪 |
…into feat/development-server
Is the idea with this PR that you can do |
The idea is to have a develop mode to medusa core and all the built-in plugins. Currently we have no easy way to update a plugin or create a new endpoint and easily test it while developing. |
I get this when |
|
Fixed. Thanks |
…into feat/development-server
I am faced with the following error message when trying to seed the DB: Creating DB...
Creating DB. DONE
Seeding DB...
Error TypeError: this.subQuery is not a function
at InsertQueryBuilder.QueryBuilder.createFromAlias (/Users/oliverjuhl/Desktop/medusa/core/node_modules/src/query-builder/QueryBuilder.ts:599:127)
at InsertQueryBuilder.into (/Users/oliverjuhl/Desktop/medusa/core/node_modules/src/query-builder/InsertQueryBuilder.ts:187:32)
at EntityManager.<anonymous> (/Users/oliverjuhl/Desktop/medusa/core/node_modules/src/entity-manager/EntityManager.ts:466:14)
at step (/Users/oliverjuhl/Desktop/medusa/core/node_modules/tslib/tslib.js:144:27)
at Object.next (/Users/oliverjuhl/Desktop/medusa/core/node_modules/tslib/tslib.js:125:57)
at /Users/oliverjuhl/Desktop/medusa/core/node_modules/tslib/tslib.js:118:75
at new Promise (<anonymous>)
at __awaiter (/Users/oliverjuhl/Desktop/medusa/core/node_modules/tslib/tslib.js:114:16)
at EntityManager.insert (/Users/oliverjuhl/Desktop/medusa/core/node_modules/typeorm/entity-manager/EntityManager.js:277:38)
at /Users/oliverjuhl/Desktop/medusa/core/integration-tests/development/database/user.js:10:17
Seeding DB... DONE From what I can find via Google search, this is likely to be related to a couple of missing environment variables, but before proceeding with the investigation, I wanted to check if you'd experienced the same issue before? |
This is really awesome @carlos-r-l-rodrigues! How should we proceed? We could add additional seeders, or let more from the team spin up the development server to ensure it works in more local environments. Let me know what you think :) |
Ideally we have more people trying it before merging this, and following that we can have another PR seeding the DB with all the required data. |
Sounds good! |
Would be great to run a couple more tests on local machines. Is anyone up for the task? @medusajs/engineering |
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.
LGTM!
What:
Initial iteration for a simple development server of medusa core.
yarn run develop:create:db
- Creates the database and seed it.yarn run develop
- Initialize the core as a server and auto reload when files are changed.