A spooky web app for collecting story elements from multiple users and generating random combinations.
-
Install dependencies:
npm install
-
Create environment file:
cp .env.example .env
-
⚠️ IMPORTANT: Set your access codes in.env:# Edit .env file and set secure codes USER_CODE=YourSecretUserCode2024 ADMIN_CODE=YourSecretAdminCode2024 -
Start the server:
npm start
- NO DEFAULT CODES: The app will not start without setting environment variables
- Environment Required: Must create
.envfile with secure codes - Git Safe:
.envfile is ignored by git, codes stay private
- Users: Use
USER_CODEto submit story elements - Admin: Use
ADMIN_CODEto access admin portal and generate final stories
Set these environment variables on your hosting platform:
USER_CODE- Code for participantsADMIN_CODE- Code for admin accessPORT- Server port (optional, defaults to 3000)NODE_ENV- Set to "production" for production