forked from UseInterstellar/Interstellar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
474 changed files
with
48,064 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PORT=8080 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
.eula |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
language = "nodejs" | ||
run = "npm run start" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM node:20.5.1-bullseye-slim | ||
ENV NODE_ENV=production | ||
|
||
WORKDIR /app | ||
|
||
COPY ["package.json", "./"] | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
CMD [ "node", "index.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Interstellar V5 | ||
|
||
Interstellar is one of the most modern and popular unblocking sites. | ||
|
||
### [Join our Discord!](https://discord.gg/interstellar) | ||
## Features | ||
|
||
- About:Blank Cloaking | ||
- Fast Speeds | ||
- Wide collection of Games. | ||
- Tab Cloaking | ||
- Wide collection of Apps | ||
|
||
## Deploying | ||
|
||
You can **NOT** deploy to Vercel, Netlify, Cloudflare Pages or any other **Static** Web Host. | ||
|
||
<a target="_blank" href="https://heroku.com/deploy/?template=https://github.com/interstellarnetwork/interstellar"><img alt="Deploy to Heroku" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/heroku.svg"></a> | ||
<a target="_blank" href="https://replit.com/github/interstellarnetwork/interstellar"><img alt="Run on Replit" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/replit.svg"></a> | ||
<a target="_blank" href="https://glitch.com/edit/#!/import/github/interstellarnetwork/interstellar"><img alt="Remix on Glitch" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/glitch.svg"></a> | ||
<a target="_blank" href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.web%2Fwebapp-linux-node%2Fazuredeploy.json"><img alt="Deploy to Azure" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/azure.svg"></a> | ||
<a target="_blank" href="https://cloud.ibm.com/devops/setup/deploy?repository=https://github.com/interstellarnetwork/interstellar"><img alt="Deploy to IBM Cloud" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/ibmcloud.svg"></a> | ||
<a target="_blank" href="https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/interstellarnetwork/interstellar"><img alt="Deploy to Amplify Console" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/amplifyconsole.svg"></a> | ||
<a target="_blank" href="https://deploy.cloud.run/?git_repo=https://github.com/interstellarnetwork/interstellar"><img alt="Run on Google Cloud" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/googlecloud.svg"></a> | ||
<a target="_blank" href="https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/interstellarnetwork/interstellar/archive/refs/heads/main.zip"><img alt="Deploy to Oracle Cloud" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/oraclecloud.svg"></a> | ||
<a target="_blank" href="https://railway.app/new/template?template=https://github.com/interstellarnetwork/interstellar"><img alt="Deploy on Railway" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/railway.svg"></a> | ||
<a target="_blank" href="https://app.koyeb.com/deploy?type=git&repository=github.com/interstellarnetwork/interstellar"><img alt="Deploy to Koyeb" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/koyeb.svg"></a> | ||
<a target="_blank" href="https://render.com/deploy?repo=https://github.com/interstellarnetwork/interstellar"><img alt="Deploy to Render" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/render.svg"></a> | ||
<a target="_blank" href="https://app.cyclic.sh/api/app/deploy/interstellarnetwork/interstellar"><img alt="Deploy to Cyclic" src="https://binbashbanana.github.io/deploy-buttons/buttons/remade/cyclic.svg"></a> | ||
|
||
## Deploy to Replit | ||
|
||
1. Create a Replit Account (https://replit.com) | ||
|
||
2. Click **+ Create Repl** | ||
|
||
3. Click **Template** and Change the language to **Node.js** | ||
|
||
4. Then click **Create Repl** | ||
|
||
5. Click **Shell** | ||
- Paste the code below. (Ctrl + Shift + V) | ||
|
||
- `git clone https://github.com/interstellarnetwork/interstellar` | ||
|
||
6. Once it's done cloning paste the code below. (Ctrl + Shift + V) | ||
|
||
- ``cd interstellar && npm i && npm run start`` | ||
|
||
## If you need any help with deploying, join our Discord! | ||
- https://discord.gg/interstellar | ||
|
||
# Credits | ||
Huge thanks to following people for contributing to Interstellar V5. | ||
- https://github.com/imbubbo | ||
- https://github.com/joetheshmoe | ||
- https://github.com/juniorbutyeah | ||
- https://github.com/RisingGlitch | ||
- https://github.com/DevDevil-RBLX | ||
- https://github.com/slay3rzz | ||
- https://github.com/Bigfoot9999 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "Astronomy", | ||
"description": "Interstellar, The Best Space Website.", | ||
"repository": "https://github.com/interstellarnetwork/interstellar", | ||
"logo": "https://github.com/interstellarnetwork/interstellar/blob/main/static/assets/images/branding/favicon/in.png", | ||
"keywords": ["school", "interstellar"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import express from "express"; | ||
import http from "node:http"; | ||
import createBareServer from "@tomphttp/bare-server-node"; | ||
import path from "node:path"; | ||
import * as dotenv from "dotenv"; | ||
dotenv.config(); | ||
|
||
const __dirname = process.cwd(); | ||
const server = http.createServer(); | ||
const app = express(server); | ||
const bareServer = createBareServer("/outerspace/"); | ||
|
||
app.use(express.json()); | ||
app.use( | ||
express.urlencoded({ | ||
extended: true, | ||
}) | ||
); | ||
|
||
app.use(express.static(path.join(__dirname, "static"))); | ||
|
||
const routes = [ | ||
{ path: "/", file: "index.html" }, | ||
{ path: "/news", file: "apps.html" }, | ||
{ path: "/algebra", file: "games.html" }, | ||
{ path: "/settings", file: "settings.html" }, | ||
{ path: "/tabs", file: "tabs.html" }, | ||
{ path: "/tabinner", file: "tabinner.html" }, | ||
{ path: "/go", file: "go.html" }, | ||
{ path: "/loading", file: "loading.html" }, | ||
{ path: "/404", file: "404.html" }, | ||
]; | ||
|
||
routes.forEach((route) => { | ||
app.get(route.path, (req, res) => { | ||
res.sendFile(path.join(__dirname, "routes", route.file)); | ||
}); | ||
}); | ||
|
||
app.get("/*", (req, res) => { | ||
res.redirect("/404"); | ||
}); | ||
|
||
// Bare Server | ||
server.on("request", (req, res) => { | ||
if (bareServer.shouldRoute(req)) { | ||
bareServer.routeRequest(req, res); | ||
} else { | ||
app(req, res); | ||
} | ||
}); | ||
|
||
server.on("upgrade", (req, socket, head) => { | ||
if (bareServer.shouldRoute(req)) { | ||
bareServer.routeUpgrade(req, socket, head); | ||
} else { | ||
socket.end(); | ||
} | ||
}); | ||
|
||
server.on("listening", () => { | ||
console.log(`Interstellar running at http://localhost:${process.env.PORT}`); | ||
}); | ||
|
||
server.listen({ | ||
port: 8080, | ||
}); |
Oops, something went wrong.