fun-project

πŸ’• Fun Proposal Website

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

✨ Features

Tech Stack

πŸš€ Installation & Running

Prerequisites

Quick Start

  1. Clone the repository (or download the code)
    git clone https://github.com/jayantajm1/fun-project.git
    cd fun-project
    
  2. Install dependencies
    npm install
    
  3. Run the project

You can run the project using either of these commands:

npm start

Or directly with Node:

node server.js
  1. Access the application

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

Stopping the Server

Press Ctrl + C in the terminal to stop the server.

🌐 Deployment

This project is deployed on Render.com and is live at:

Live URL: https://fun-project-85yv.onrender.com

Deploy Your Own

For detailed deployment instructions to Render.com, see DEPLOYMENT.md

The project includes:

How to Use

Creating a Proposal

  1. Go to http://localhost:3000
  2. Enter your name
  3. Write your proposal (e.g., β€œWill you be my Valentine?”)
  4. Click β€œCreate Proposal”
  5. Copy the generated link and share it!

Responding to a Proposal

  1. Open the shared link
  2. Read the proposal
  3. Try to click β€œNo” - watch it run away! πŸ˜„
  4. Click β€œYes” to accept (it’s the only way!)
  5. Enjoy the celebration animation πŸŽ‰

Database Schema

Proposals Table

Responses Table

API Endpoints

File Structure

fun-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

Customization Ideas

Notes

Fun Facts

Enjoy creating fun proposals! πŸ’•