playground/README.md
Steps to run this project:
npm i commandnpm start commandThis is an ESM (ECMAScript Modules) example using TypeORM with SQLite. It demonstrates:
The example uses sql.js as the database driver, which creates an in-memory SQLite database.
# Start the application
npm start
# Build the TypeScript code
npm run build
# Run TypeORM commands (if needed)
npm run typeorm
When you run npm start, the application will:
src/
├── entity/
│ └── User.ts # User entity definition
├── index.ts # Main application code
└── ormconfig.ts # Database configuration
Since this project uses an in-memory database, all data is temporary and will be cleared when the application stops. This makes it perfect for testing and development purposes.
The use of sql.js makes this project compatible with browser environments like Stackblitz, as it doesn't require any native dependencies.