1
0
forked from notBrad/bubo-rss

Compare commits

...

19 Commits
main ... glitch

Author SHA1 Message Date
George Mandis
6aa4dc80b3 Merge branch 'main' into glitch 2022-12-04 15:04:10 -08:00
George Mandis
b9a7da4287 Merge branch 'main' into glitch 2021-12-05 13:41:43 -08:00
George Mandis
1b3f20379a Removing comment 2021-11-29 01:36:02 -08:00
George Mandis
89dbf2c17a Updating express server for module 2021-11-29 01:35:39 -08:00
George Mandis
b429c213b8 Tweaked server for Glitch 2021-11-29 01:08:47 -08:00
George Mandis
1a9c60a4d6 Merging 2.0 in and tweaking for Glitch 2021-11-29 01:06:07 -08:00
George Mandis
57571db322 Fixed feed branch name 2021-11-14 20:03:50 -08:00
George Mandis
6fca9e15be Updated default feeds 2021-11-14 19:57:39 -08:00
George Mandis
6dbd6bfe02 Added missing const. How did I not ever catch this? 2021-11-14 19:51:23 -08:00
George Mandis
29e2188b2e Updated package.json for glitch branch 2021-11-14 19:46:31 -08:00
George Mandis
415bfb6c73 Updated package.json 2021-11-14 19:40:23 -08:00
George Mandis
a5ff96e449 Updated Bubo to v1.0.1 2021-11-14 19:39:43 -08:00
George Mandis
1cd365e257 Added gitignore 2021-11-14 19:39:31 -08:00
George Mandis
d124194296 Merge branch 'main' into glitch 2021-05-09 11:49:28 -07:00
George Mandis
713a4eedaa Merge branch 'master' into glitch 2020-02-04 10:09:38 -05:00
George Mandis
53843e949e
Create server.js
Added server file to run Express on Glitch
2020-02-04 10:07:55 -05:00
George Mandis
949bea60b3 Merge branch 'master' into glitch 2020-02-04 09:44:24 -05:00
George Mandis
ceaad6c5b4 Merge branch 'master' into glitch 2020-02-04 09:43:06 -05:00
George Mandis
fbfda83125 Created glitch branch 2020-02-04 09:32:05 -05:00
4 changed files with 31 additions and 7 deletions

View File

@ -1,4 +0,0 @@
[build]
command = "npm run build:bubo"
publish = "./public/"

View File

@ -10,7 +10,9 @@
"clean": "rm -rf dist", "clean": "rm -rf dist",
"build": "tsc", "build": "tsc",
"bubo": "node dist/index.js", "bubo": "node dist/index.js",
"build:bubo": "tsc && node dist/index.js" "build:bubo": "tsc && node dist/index.js",
"start": "npm run build:bubo; node server.js",
"test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": { "author": {
"name": "George Mandis", "name": "George Mandis",
@ -30,8 +32,10 @@
"chalk": "^5.1.2", "chalk": "^5.1.2",
"node-fetch": "^3.3.0", "node-fetch": "^3.3.0",
"nunjucks": "^3.2.3", "nunjucks": "^3.2.3",
"rss-parser": "^3.12.0" "rss-parser": "^3.12.0",
"express": "^4.17.1"
}, },
"engines": { "node": "16.x" },
"devDependencies": { "devDependencies": {
"@types/node": "^16.18.4", "@types/node": "^16.18.4",
"@types/nunjucks": "^3.2.1", "@types/nunjucks": "^3.2.1",

24
server.js Normal file
View File

@ -0,0 +1,24 @@
// Bubo RSS (on Glitch!)
// init project
import express from "express";
import { URL } from 'url';
const __dirname = new URL('.', import.meta.url).pathname;
const app = express();
// we've started you off with Express,
// but feel free to use whatever libs or frameworks you'd like through `package.json`.
// http://expressjs.com/en/starter/static-files.html
app.use(express.static("public"));
// http://expressjs.com/en/starter/basic-routing.html
app.get("/", function(request, response) {
response.sendFile(__dirname + "/public/index.html");
});
// listen for requests :)
const listener = app.listen(process.env.PORT, function() {
console.log("Your app is listening on port " + listener.address().port);
});