Waterlily Survey App
Prerequisites
Node.js (v18 or newer recommended)
npm (comes with Node.js)
Getting Started
Clone the repository:
Install dependencies:
Run the development server:
The app will be available at http://localhost:3000
Database:
The app uses SQLite (
waterlily.db).The database and tables are created automatically on first run.
No manual setup is required unless you want to pre-populate data.
Environment Variables:
If you need to set environment variables, create a
.env.local file in the root directory.Example:
Linting and Formatting:
Run
npm run lint to check for lint errors.Project Structure
app/ - Main Next.js app codepublic/ - Static assetswaterlily.db - SQLite database filesurvey-data.ts - Database schema and interfacesapi/ - API routesNotes
Make sure
.db files and other sensitive files are not committed (see .gitignore).For production, review security and deployment best practices for Next.js and SQLite.
Troubleshooting
If you encounter issues, ensure Node.js and npm are up to date.
Check the terminal for error messages.
Delete
waterlily.db to reset the database (all data will be lost).For questions or contributions, open an issue or pull request.
Getting Started
First, run the development server:
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying
app/page.tsx. The page auto-updates as you edit the file.This project uses
next/font to automatically optimize and load Geist, a new font family for Vercel.Learn More
To learn more about Next.js, take a look at the following resources:
Next.js Documentation - learn about Next.js features and API.
Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
1 like · 12 views · Sep 2, 2025
Developed a survey app using Next.js and SQLite.