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",
|
"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",
|
||||||
|
|||||||
@@ -1,12 +1,19 @@
|
|||||||
<html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<html lang="en">
|
||||||
<title>Searchthing</title>
|
<head>
|
||||||
</head>
|
<meta charset="UTF-8">
|
||||||
<body>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<h1>search the web</h1>
|
<link rel="stylesheet" href="style.css"/>
|
||||||
<form action="/search" name="searchbox" method="GET">
|
<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"/>
|
search: <input type="text" name="query"/>
|
||||||
<input type="submit" value="submit"/>
|
<input type="submit" value="submit"/>
|
||||||
</form>
|
</p>
|
||||||
</body>
|
</form>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user