Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenforthewin/covid-viz
https://github.com/kenforthewin/covid-viz
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kenforthewin/covid-viz
- Owner: kenforthewin
- License: mit
- Created: 2020-03-29T18:48:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T10:41:21.000Z (almost 2 years ago)
- Last Synced: 2024-03-17T10:36:04.989Z (10 months ago)
- Language: JavaScript
- Size: 8.35 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# demonstration of [react](https://reactjs.org/) + [sql.js](https://github.com/sql-js/sql.js)
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`
See [`src/App.js`](./src/App.js) for the code.
### [view the live demo](https://sqljs-react-demo.netlify.com/)