Errors in deploying Cesium JS to Amazon Elastic Beanstalk Instance

I have an application that I would like to deploy to AWS Elastic Beanstalk, but have been getting a plethora of errors. My issue is that I do not know exactly which files to bundle. I am using one of the Cesium examples with my own parameters. The .html opens fine in web browser via localhost and node.js. However when I've tried to bundle what I thought are the correct files together, I have been getting deployment errors in the logs. I want to hit the 3D Tiles Feature Styling. html in the folder structure below. I have ensured that express is in the node_modules and have tried different scenarios in compiling the files. What is the solution for this issue? I have also changed app.js to main.js per other thread suggestions. I have tried deploying the entire Cesium 1.43 zip file and get the following errors.

npm ERR! Failed at the cesium@1.43.0 start script 'node server.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the cesium package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node server.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs cesium npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls cesium npm ERR! There is likely additional logging output above.

The goal of this deployment is to see the cesium sandcastle samples deployed via Elastic Beanstalk

I am using Google Chrome, Windows 10 and Cesium 1.43

Hi Geoffry,

Cesium Sandcastle examples are not designed to be served out as standalone applications. First, the sandcastle examples depend on some Sandcastle-specific code for creating quick and dirty GUI elements. Secondly, while not necessary, you will get much better performance out of an application by including each module individually rather than as the global Cesium object.

We have a few guides depending on your needs:

  • The Getting Started tutorial provides the simplest way to set up a Cesium app.
  • The Setup section of the Cesium Workshop tutorial covers creating an app with the Cesium source and npm.
  • The Cesium and webpack tutorial provides a step-by-step guide to setting up and building an app using npm and webpack.

Thanks,

Gabby