update: rename index.js to app.js
This commit is contained in:
+3
-3
@@ -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",
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
<html>
|
||||
<head>
|
||||
<!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>search the web</h1>
|
||||
<form action="/search" name="searchbox" method="GET">
|
||||
</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"/>
|
||||
</p>
|
||||
</form>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user