/browser-example

Example how to use TypeORM in the browser with WebSQL.

Primary LanguageTypeScript

Example how to use TypeORM with TypeScript in the browser

  1. clone repository
  2. run npm i
  3. run tsc
  4. run npm start
  5. open site in the browser (http://localhost:3000)
  6. open your web developer console and take a look what queries are executed and what data is persisted

Screenshots

Logs from your console:

typeorm-browser-websql-console

Here is what data is saved in the database:

typeorm-browser-websql-database