This project serves as the backend for a WebGPU application. It's designed to process user input, simulate it with WebGPU, and then send the results to the frontend to be visualized using Three.js for 3D bar chart representation.
- Node.js
- npm
- SQLite (integrated)
-
Clone the repository:
git clone https://github.com/djpapzin/webgpu-backend.git
-
Navigate to the project directory:
cd webgpu-backend -
Install the required packages:
npm install
To start the server, run:
node server.jsThe server will start, and you should see a message indicating it's running on http://localhost:3000.
- Visit
http://localhost:3000/input.htmlto input data. - Submit the data, which will be processed and stored in the SQLite database.
- Visit
http://localhost:3000/index.htmlto view the visualized data in a 3D bar chart.
- POST /process-data: Accepts user input for processing and stores it in the SQLite database.
- GET /get-data: Returns the processed data from the SQLite database to be visualized on the frontend.
- Integrate WebGPU for data processing.
- Enhance the API for more complex simulations.
- Implement error handling and validation for user input.
- Extend visualization capabilities, including 3D visualization options.
The project uses SQLite for data storage. This provides a lightweight solution for storing and retrieving user input data.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the ISC License.