Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ebodshojaei/threejs-cloud-firebase
A simple THREE.js website using Node.js to connect to an encrypted Firebase store containing static model files (i.e., .glb) that are accessed using signed URLs.
https://github.com/ebodshojaei/threejs-cloud-firebase
3d 3d-models esbuild express express-js express-middleware express-session expressjs firebase firebase-firestore firebase-storage firebase-store glb node node-js signed-url three three-js threejs
Last synced: 29 days ago
JSON representation
A simple THREE.js website using Node.js to connect to an encrypted Firebase store containing static model files (i.e., .glb) that are accessed using signed URLs.
- Host: GitHub
- URL: https://github.com/ebodshojaei/threejs-cloud-firebase
- Owner: EbodShojaei
- License: epl-2.0
- Created: 2023-06-27T05:40:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-05T03:01:51.000Z (over 1 year ago)
- Last Synced: 2024-11-15T08:20:59.575Z (3 months ago)
- Topics: 3d, 3d-models, esbuild, express, express-js, express-middleware, express-session, expressjs, firebase, firebase-firestore, firebase-storage, firebase-store, glb, node, node-js, signed-url, three, three-js, threejs
- Language: JavaScript
- Homepage: https://webod.cyclic.app/
- Size: 43.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# THREE.JS with Express, Firebase & ESBuild
A simple website using Node.js that connects to an encrypted Firebase store containing static model files (i.e., .glb) that are accessed using signed URLs. See the [live demo](https://viewebod.cyclic.app/) for more details.
Author: Ebod Shojaei
Version: 2.0.0## Features:
### Security- **Signed URLs**: Gain secure and time-limited access to 3D models stored in Firebase. Falls back to server-stored model on error.
- **Session Management**: Unique session identifiers are generated upon site visit. These sessions are used for route tracking, preventing unauthorized access to sensitive routes.
- **Middleware Checkpoints**: Custom middleware flags sessions during model download attempts, ensuring only authorized access.
- **Protected Routes**: Advanced middleware redirects unauthorized users and denies forbidden access.### User Interface
- **Animated .glb Model**: Interact with a fully rigged and animated .glb model.
- **Draggable Selection Box**: A fully animated selection box enhances the user interaction.### Infrastructure
- **Error Handling**: Dynamic error pages handle invalid routes and set appropriate HTTP status codes (e.g., 403, 404, 429, 500, etc.).
- **Hosting**: Deployed on Cyclic for better scalability and performance.## License:
### Code
The code in this project is licensed under the Eclipse Public License 2.0 - see the [LICENSE](LICENSE) file for details.
### 3D Models and Assets
The 3D models in this repository are licensed under a [Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License](https://creativecommons.org/licenses/by-nc-nd/4.0/). All 3D models, textures, and associated assets are the exclusive property of the author and are not licensed for any form of distribution or reuse unless explicitly stated otherwise. Unauthorized copying, modification, or distribution is not permitted.**Any use of these assets without explicit written consent from the author is strictly prohibited.**