Coder Social home page Coder Social logo

ebodshojaei / threejs-cloud-firebase Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 45 KB

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.

Home Page: https://webod.cyclic.app/

License: Eclipse Public License 2.0

JavaScript 80.15% EJS 6.30% Procfile 0.09% CSS 13.46%
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

threejs-cloud-firebase's Introduction

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 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 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. 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.

threejs-cloud-firebase's People

Contributors

ebodshojaei avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.