# Hosting Cesium 3D Tiles in node.js server

**URL:** <https://community.cesium.com/t/hosting-cesium-3d-tiles-in-node-js-server/5445>\
**Category:** CesiumJS\
**Created:** [April 26, 2017, 12:11am UTC](https://community.cesium.com/t/hosting-cesium-3d-tiles-in-node-js-server/5445 "2017-04-26T00:11:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gadeseelliot](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@gadeseelliot](https://community.cesium.com/u/gadeseelliot)\
**Post date:** [April 26, 2017, 12:11am UTC](https://community.cesium.com/t/hosting-cesium-3d-tiles-in-node-js-server/5445/1 "2017-04-26T00:11:18Z")

</div>

I have model in cesium 3d tiles format which I want to host on node.js server for viewing in web browser. I currently have cesium 1.32. How do I go about this?

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [April 26, 2017, 11:10pm UTC](https://community.cesium.com/t/hosting-cesium-3d-tiles-in-node-js-server/5445/2 "2017-04-26T23:10:43Z")

</div>

You can use the server.js in 3d-tiles-samples as an example: [https://github.com/AnalyticalGraphicsInc/3d-tiles-samples](https://github.com/AnalyticalGraphicsInc/3d-tiles-samples). Cesium’s built-in server.js can also serve 3d tiles files.

---

<div class="post-metadata">

**Author:** ![Rachel\_Hwang](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Rachel\_Hwang](https://community.cesium.com/u/Rachel_Hwang)\
**Post date:** [April 27, 2017, 12:39pm UTC](https://community.cesium.com/t/hosting-cesium-3d-tiles-in-node-js-server/5445/3 "2017-04-27T12:39:31Z")

</div>

Hi there,

First of all, to use 3D Tiles, since our support has not yet been merged into Cesium, you’ll need to use the 3D Tiles branch from the Cesium repository, available here: [https://github.com/AnalyticalGraphicsInc/cesium/tree/3d-tiles](https://github.com/AnalyticalGraphicsInc/cesium/tree/3d-tiles)

To build that branch from source, you can follow our build guide: [https://github.com/AnalyticalGraphicsInc/cesium/tree/master/Documentation/Contributors/BuildGuide](https://github.com/AnalyticalGraphicsInc/cesium/tree/master/Documentation/Contributors/BuildGuide)

Alternatively, you can download a zip of the latest 3D-tiles build. Here is the head of 3d-tiles as of right now: [http://cesium-dev.s3-website-us-east-1.amazonaws.com/cesium/3d-tiles/Cesium-1.32.1-3d-tiles21211.zip](http://cesium-dev.s3-website-us-east-1.amazonaws.com/cesium/3d-tiles/Cesium-1.32.1-3d-tiles21211.zip) This is the exact same zip as a real release, just made from the branch.

Once you’re running that version of Cesium and you have your tiles hosted at some/url/tileset.json, adding your tileset to the scene should be as easy as:

var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({

```
url : ‘some/url/tileset.json'

```

}));

Unfortunately, we don’t yet have a really simple 3d-tiles Sandcastle example, but you can take a look at this one for reference: [http://cesium-dev.s3-website-us-east-1.amazonaws.com/cesium/3d-tiles/Apps/Sandcastle/index.html?src=3D%20Tiles.html&label=Showcases](http://cesium-dev.s3-website-us-east-1.amazonaws.com/cesium/3d-tiles/Apps/Sandcastle/index.html?src=3D%20Tiles.html&label=Showcases)

Hope that helps!

- Rachel
