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
@@ -10,6 +10,7 @@ import {
Index,
} from "typeorm"
import { ulid } from "ulid"
import { DbAwareColumn } from "../utils/db-aware-column"
import { ClaimOrder } from "./claim-order"
import { Order } from "./order"
@@ -81,7 +82,7 @@ export class ShippingMethod {
@Column({ type: "int" })
price: number
@Column({ type: "jsonb" })
@DbAwareColumn({ type: "jsonb" })
data: any
@BeforeInsert()