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", "version": "1.0.0",
"description": "a simple webform for downloading google search results", "description": "a simple webform for downloading google search results",
"type": "commonjs", "type": "commonjs",
"main": "src/index.js", "main": "src/app.js",
"scripts": { "scripts": {
"test": "echo \"testing not implemented yet\"", "test": "echo \"testing not implemented yet\"",
"serve": "node src/index.js" "serve": "node src/app.js"
}, },
"dependencies": { "dependencies": {
"cheerio": "^1.2.0", "cheerio": "^1.2.0",
View File
+14 -7
View File
@@ -1,12 +1,19 @@
<html> <!DOCTYPE html>
<head> <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> <title>Searchthing</title>
</head> </head>
<body> <body>
<h1>search the web</h1> <h1 id="title">search the web</h1>
<form action="/search" name="searchbox" method="GET"> <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"/> search: <input type="text" name="query"/>
<input type="submit" value="submit"/> <input type="submit" value="submit"/>
</p>
</form> </form>
</body> </body>
</html> </html>