Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# demonstration of [react](https://reactjs.org/) + [sql.js](https://github.com/sql-js/sql.js)
# SQLite Ract JS Demo

Demonstration app of [react](https://reactjs.org/) and [sql.js](https://github.com/sql-js/sql.js) web assembly library.

This is a template repository demonstrating the use of sql.js with create-react-app.

The only differences with a traditional create-react-app application are :
- The usage of [react-app-rewired](https://www.npmjs.com/package/react-app-rewired) to allow providing a custom [webpack](https://webpack.js.org/) configuration
- a custom [`config-overrides.js`](./config-overrides.js) to copy the wasm module from sql.js to the distributed assets

Note that you should make sure your server serves `.wasm` files with the right mimetype, that is: `application/wasm`. Otherwise, you'll see the following warning in the console: `TypeError: Response has unsupported MIME type`
> Note that you should make sure your server serves `.wasm` files with the right mimetype, that is: `application/wasm`. Otherwise, you'll see the following warning in the console: `TypeError: Response has unsupported MIME type`

See [`src/App.js`](./src/App.js) for the code.

### [view the live demo](https://sqljs-react-demo.netlify.com/)
## Links

* [Live demo](https://sqlite-js-demo.netlify.app)
Loading