4.0.0 β€’ Published 2 years ago

dozehost v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Dozehost πŸš€

made by Fabboy

What is Dozehost❓

Dozehost is a simple, fast, and secure way to host your website. It's free and open source. Dozehost supports various features and will be updated as new features are added.

How to use Dozehost? βš™οΈ

  1. Install the NPM package
npm install dozehost
  1. Create a server file where you can host your website for example "server.js"
  2. Create a root folder where your website is located for example "root"

Current file structure:
(i also create a "index.html" file)

β”œβ”€β”€ root 
β”‚   └── index.html
β”œβ”€β”€ server.js
  1. Setup the Server script to run your website (This script can be various depending on your server setup)
//import the package
const dozehost = require("dozehost")
//create a server
const doze = new dozehost("./root", 3030, "index.html")  //set the root folder, the port, and the default file
//redirect all requests on empty / to the default file
doze.redirect("/", "/index.html")
// start the host
doze.serve()
//print the url
console.log("http://localhost:" + doze.port)
  1. Open your browser and go to http://localhost:3030 to see your website 🌐 Now the file structure should look like this:
β”œβ”€β”€ root 
β”‚   β”œβ”€β”€ serverAssets 
β”‚   β”‚   β”œβ”€β”€ 404.html
β”‚   β”‚   └── redirect.json
β”‚   β”œβ”€β”€ debug 
β”‚   β”‚   β”œβ”€β”€ ips.json
β”‚   β”‚   └── debug.log
β”‚   └── index.html    
β”œβ”€β”€ server.js

Features πŸ”§

  • Fast
  • Redirecting
  • Easy
  • Logging
  • DDOS protection (works sometimes but not always)
  • IP tracking (perfect if you're hosting your application publicly)

The script will create a redirect.json file with all redirects in it. You can add and remove redirects from the redirect.json file. The script will also create a 404.html file if it doesn't find a file. You can edit the 404.html file. The script will also create a debug.log file The script will also create a ips.json with all the ips that have visited the website and their userid.

DDOS protection πŸ’£

The DDOS protection works with Milliseconds and will try to block the ip for a certain amount of time.

Future Features πŸš€

  • Add support for other file types
  • Dashboard for admins
  • Support for multiple servers
  • external redirects

License πŸ”‘

Dozehost is licensed under the MIT license. You can view the full license text here.

4.0.0

2 years ago

3.2.1

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.0.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago