update: rename index.js to app.js

This commit is contained in:
odweta
2026-09-07 16:51:05 +02:00
parent 9c68886f3a
commit 480c0f753f
3 changed files with 19 additions and 12 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
{
"name": "app",
"name": "Searcher",
"version": "1.0.0",
"description": "a simple webform for downloading google search results",
"type": "commonjs",
"main": "src/index.js",
"main": "src/app.js",
"scripts": {
"test": "echo \"testing not implemented yet\"",
"serve": "node src/index.js"
"serve": "node src/app.js"
},
"dependencies": {
"cheerio": "^1.2.0",
View File
+16 -9
View File
@@ -1,12 +1,19 @@
<html>
<head>
<title>Searchthing</title>
</head>
<body>
<h1>search the web</h1>
<form action="/search" name="searchbox" method="GET">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css"/>
<title>Searchthing</title>
</head>
<body>
<h1 id="title">search the web</h1>
<h3 id="subtitle">get the search results and save them in a json file.</h3>
<form id="searchform" action="/search" name="searchbox" method="GET">
<p>
search: <input type="text" name="query"/>
<input type="submit" value="submit"/>
</form>
</body>
</p>
</form>
</body>
</html>