https://github.com/srijan-petwal/hello-cocco
my experiments and learnings with threeJs and react-three/fibre. Follow the link below.
https://github.com/srijan-petwal/hello-cocco
blender react reactthree reactthreefiber threejs
Last synced: about 1 month ago
JSON representation
my experiments and learnings with threeJs and react-three/fibre. Follow the link below.
- Host: GitHub
- URL: https://github.com/srijan-petwal/hello-cocco
- Owner: Srijan-Petwal
- Created: 2025-06-26T18:17:09.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-07-01T21:57:38.000Z (12 months ago)
- Last Synced: 2025-07-01T22:22:57.053Z (12 months ago)
- Topics: blender, react, reactthree, reactthreefiber, threejs
- Language: JavaScript
- Homepage: https://coccos-world.netlify.app/
- Size: 49.8 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π§ββοΈ Cocco's World (More like Hello worldπ)
>[!IMPORTANT]
> π§ͺ A playground of experiments and learnings with `Three.js`, `React Three Fiber`, and `Blender`.
> A journey into the world of interactive 3D experiences β one scene at a time.
#### Docker Hub repo
[](https://hub.docker.com/repository/docker/srijan5/cocco-world/general)
---
## πΈ Screenshots
### π§ Scene Preview


---
### π **Live Demo with Netlify**
π [coccos-world.netlify.app](https://coccos-world.netlify.app)
## βοΈ **Live Demo with AWS EC2 Deployment**
>[!NOTE]
> π **Now hosted on a custom EC2 instance via Docker!**
> This deployment showcases my growing expertise in DevOps β moving beyond platforms like Netlify for a more hands-on infrastructure experience.
π [http://16.171.199.186:3000](http://16.171.199.186:3000)
_(Hosted on AWS EC2 β may take a few seconds to wake up if idle)_
---
### EC2- Instance Screenshot

---
### π‘About Why AWS EC2 Deployment?
- π οΈ To **learn and practice real-world deployment**.
- π³ Run the app inside a **Docker container** on a **Linux VM**.
- π Handle **firewall settings, ports, and SSH access** manually.
- π Gain **deeper insight** into how full-stack apps run on the cloud.
---
### π§ͺ Tech Stack Used
- Amazon EC2 (Ubuntu)
- Docker (Containerized deployment)
- Public IP with exposed port `3000`
---
### π¦ Deployed Container Command
```bash
docker run --restart=always -p 3000:3000 srijan5/cocco-world
```
## π₯ Project Videos
### πΉ Demo 1: Scene Interaction Preview
[ποΈ Watch Demo 1](https://youtu.be/G2m8G8DD-as)
### πΉ Demo 2: Animation + Tweak Controls
[π¬ Watch Demo 2](https://youtu.be/UJzaEgI9rnQ)
>[!NOTE]
>Credit for all the pre-built models goes to their respective creaters.I tweaked them, gave some of them animations and optimized them a bit. All of them are under various free-use licenses.
---
## π§ About
This project is my personal **3D lab** β a place where I explore:
- π¨ Loading and animating **Blender models**
- π Creating smooth interactions using **React Three Fiber**
- π‘ Playing with lighting, materials, cameras, shadows, and scene depth
- π Learning best practices for structuring 3D components in React
>[!NOTE]
> If it's 3D and on the web, this is where I tinker with it!
---
## π Tech Stack
| Frontend | 3D/Rendering | Assets |
|----------|--------------|--------|
| `React.js` | `Three.js` | `Blender (GLTF)` |
| `React Three Fiber` | `Drei` | `Custom shaders` *(LEARNINGπ§)* |
| `JavaScript (ES6)` | `Canvas/WebGL` | β |
---
## π οΈ How to Run Locally(try playing with it yourself)
```bash
git clone https://github.com/Srijan-Petwal/hello-cocco.git
cd coccos-world
npm install
npm run dev
```
---
## π³ Now Runs in Docker!
>[!TIP]
> You can now run the entire project inside a Docker container β no need to install Node, Vite, or any dependencies manually.
>This makes previewing the project locally much easier and cleaner. Ideal for sandbox testing, sharing, or running in isolated environments.
---
## π§° What It Takes to Run Locally with Docker
To run this project locally using Docker, you need just a few things set up:
#### β
Prerequisites
- **Docker Desktop installed**
β [Download Docker](https://www.docker.com/products/docker-desktop)
- **Working internet connection** (for the first-time image pull)
---
#### π Steps to Run in Docker
```bash
# Pull and run the container
docker run -it -p 3000:3000 srijan5/cocco-world
```