Skip to content

Commit

Permalink
v5.0.1 | discord.gg/gointerstellar
Browse files Browse the repository at this point in the history
  • Loading branch information
xbubbo authored Oct 8, 2023
1 parent a68e7cd commit e7571a4
Show file tree
Hide file tree
Showing 11 changed files with 2,803 additions and 0 deletions.
Empty file added .github/FUNDING.yml
Empty file.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.eula
2 changes: 2 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
language = "nodejs"
run = "npm run start"
12 changes: 12 additions & 0 deletions Dockerfile
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" ]
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Interstellar V5

Interstellar is one of the most modern and popular unblocking sites.

### [Join our Discord!](https://discord.gg/interstellar)
##### By joining you will help the Interstellar community grow even larger ❤
## Features


> **If you do fork this repo, please give the original repo a star! It helps out alot and only 30% of people who fork give us a star... besides, you know you want to...**
- About:Blank Cloaking
- Fast Speeds
- Wide collection of Games.
- Tab Cloaking
- Wide collection of Apps
- Clean UI

## 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>

## 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``

> **Note**
> When hosting with replit you may have to keep the tab open due to the proxy being hosted within that tab. If closed, the site's domain will close and will not be accessible.
## If you need any help with deploying, join our Discord!
- https://discord.gg/interstellar

> **Note**
> If you have any problems please open an issue, so we can fix it ASAP!
> If you don't know how to do this because you are an absolute no-brainer then message us a report in our [Discord](https://discord.gg/interstellar)
# Credits
Huge thanks to following people for contributing to Interstellar.

[![Contrib](https://contrib.rocks/image?repo=InterstellarNetwork/Interstellar)](https://github.com/InterstellarNetwork/Interstellar/graphs/contributors)



7 changes: 7 additions & 0 deletions app.json
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"]
}
69 changes: 69 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
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/");
const PORT = process.env.PORT

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, "static", 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: PORT,
});

Loading

0 comments on commit e7571a4

Please sign in to comment.