This project is an escape room web app with a Node.js + Express backend and a MongoDB database for storing results.
- Node.js (v16 or higher recommended)
- npm (comes with Node.js)
- MongoDB instance (local or remote)
- Clone the repository
git clone <your-repo-url>
cd cotec_escape_room- Install dependencies
npm install- Configure environment variables
- Copy
template.envto.env:
cp template.env .env- Edit
.env.
- Start the server
node server.jsThe server will start on http://localhost:3000 by default.
- Open
http://localhost:3000in your browser. - The app will prompt for your email if not already stored.
- Play the escape rooms and submit codes to unlock rooms.
- Results are stored in MongoDB when a room is completed.
server.js— Express backend and APIindex.html,escape_*.html— Frontend pagesscript.js— Frontend logicstyles.css— Styles.env— Environment variables (not committed)
See LICENSE.md