A playful web application where users can create shareable proposal links with an interactive twist - the βNoβ button runs away when you try to click it!
π Live Demo: Deploy your own instance
git clone https://github.com/jayantajm1/fun-project.git
cd fun-project
npm install
You can run the project using either of these commands:
npm start
Or directly with Node:
node server.js
Open your browser and navigate to:
http://localhost:3000
The server will start on port 3000 by default. You should see:
β
Server running on http://localhost:3000
Press Ctrl + C in the terminal to stop the server.
This project is deployed on Render.com and is live at:
Live URL: https://fun-project-85yv.onrender.com
For detailed deployment instructions to Render.com, see DEPLOYMENT.md
The project includes:
render.yaml - Render configuration for auto-deploymenthttp://localhost:3000id: Auto-incrementing primary keyunique_id: UUID for the shareable linkcreator_name: Name of the person creating the proposalproposal_text: The proposal messagecreated_at: Timestampid: Auto-incrementing primary keyproposal_id: Foreign key to proposalsresponse: Userβs response (yes/no)responded_at: TimestampPOST /api/proposals - Create a new proposalGET /api/proposals/:uniqueId - Get proposal detailsPOST /api/responses - Submit a responseGET /api/proposals/:uniqueId/stats - Get proposal statisticsfun-project/
βββ server.js # Express server and API routes
βββ package.json # Dependencies and scripts
βββ proposals.db # SQLite database (auto-created)
βββ public/
β βββ index.html # Home page (create proposal)
β βββ proposal.html # Proposal view page
β βββ styles.css # All styles
β βββ script.js # Home page logic
β βββ proposal.js # Proposal page logic (moving button)
βββ README.md # This file
styles.cssproposal.jsproposals.db is created automatically on first runEnjoy creating fun proposals! π