Add SQLite support for easy setup (#336)

* Modifies schema to allow SQLite as a DB driver. SQLite is preinstalled in most OSes allowing for minimal prerequisites in the installation process.

* Removes Redis dependency and replaces "real" redis instance with ioredis-mock this is not feature complete and errors are expected.

* Updates medusa new command to only ask for Postgres credentials if the starter template has database_type === "postgres" in medusa-config.js

* Small improvements to bin resolution

* Improvements to endpoint stability
This commit is contained in:
Sebastian Rindom
2021-08-16 15:45:26 +02:00
committed by GitHub
parent 09d1b1a141
commit 1039d040e9
76 changed files with 2072 additions and 523 deletions

View File

@@ -100,27 +100,22 @@ function buildLocalCommands(cli, isLocalProject) {
.option(`db-user`, {
type: `string`,
describe: `The database user to use for database setup and migrations.`,
default: `postgres`,
})
.option(`db-database`, {
type: `string`,
describe: `The database use for database setup and migrations.`,
default: `postgres`,
})
.option(`db-pass`, {
type: `string`,
describe: `The database password to use for database setup and migrations.`,
default: ``,
})
.option(`db-port`, {
type: `number`,
describe: `The database port to use for database setup and migrations.`,
default: 5432,
})
.option(`db-host`, {
type: `string`,
describe: `The database host to use for database setup and migrations.`,
default: `localhost`,
}),
desc: `Create a new Medusa project.`,
handler: handlerP(newStarter),