A text-based escape room game
- Zach Schwartz (Art)
- Thomas Capen (Story)
- Andrew Hoener (Code)
To use this application you should have node
, npm
and mongodb
installed and issue the following commands:
npm install
: this will install the requirednode
libraries.npm run buildDev
: this will compile the application code and produce adist
directory. Compresses JS files into main.js and links to html files. Initializes yourmongodb
with the necessary data for the application to function.npm start
: this will run the Express server,server.js
, allowing you to view the running application in the browser window.
- src/css: Custom css files
- src/html: Base HTML files, mostly blank except for React Hooks
- src/img: Images for the build, copied into dist/img
- src/js: React components and javascript
- src/server: server-dev, the main server file
- index.js: Imports from all the react components
- Webpack configs: Bundles all the stuff together
#Notes
This app uses lots of large images, so the initial load may be slow.
Additional performance should come from minifying/uglifying all of the code but
at this point I haven't bothered to make a webpack config for production, since
it wasn't used at all during development, and once the initial load is done, performance
is just fine