├── .DS_Store ├── .gitignore ├── README.md ├── app.js ├── package.json └── views └── index.html /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adotterer/FidoFinder/dadac54298cb8533788736b310becb03d39252d5/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .env 3 | .eslintcache 4 | .DS_Store 5 | .icloud 6 | backend/logs 7 | backend/routes/api/logs 8 | *.icloud 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Under construction, check out the OLD_APP branch for previous version. -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | const http = require("http"); 2 | const fs = require("fs"); 3 | 4 | const server = http.createServer((req, res) => { 5 | console.log("METHOD:", req.method, "\nURL:", req.url); 6 | const html = fs.readFileSync("./views/index.html"); 7 | if (req.method === "GET" && req.url === "/") { 8 | res.statusCode = 200; 9 | res.setHeader("Content-Type", "text/html"); 10 | return res.end(html); 11 | } else { 12 | return res.end() 13 | } 14 | }); 15 | 16 | const port = process.env.PORT || 3000; 17 | 18 | server.listen(port, () => console.log("listening on ", port)); -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fidofinder", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "start": "node app.js" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/adotterer/FidoFinder.git" 13 | }, 14 | "author": "", 15 | "license": "ISC", 16 | "bugs": { 17 | "url": "https://github.com/adotterer/FidoFinder/issues" 18 | }, 19 | "homepage": "https://github.com/adotterer/FidoFinder#readme" 20 | } 21 | -------------------------------------------------------------------------------- /views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | FidoFinder App 8 | 21 | 22 | 23 |

Under Construction 🐶

24 | 25 | --------------------------------------------------------------------------------