0.0.19 • Published 3 years ago

@pixium-digital/host-it v0.0.19

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
3 years ago

host-it

Simply host directories with basic auth


Installation

Simply run the following:

yarn add host-it

Similar to serve you can also use this module as a global module

yarn global add host-it

Run

You can run it as a command line with the following parameters:

  • directory: (required)
    • This represents the path to the directory you want to host
  • port: (optional, default 8080)
    • The port you want the server to run on
  • username: (optional)
    • If you use username you will need to use the password and hostname parameter. This will activate basic auth on the hosted content
  • password: (optional)
    • If you use password you will need to use the username and hostname parameter. This will activate basic auth on the hosted content
  • hostname: (optional)
    • If you use hostname you will need to use the username and password parameter. This will activate basic auth on the hosted content
  • isReact: (optional)
    • If your app is react we will redirect all to index.html

You can also add a host-it.json file at the source of your project.

Example:

{
    "directory": "dashboard",
}

or

{
    "directory": "test",
    "port": 5000,
    "security": {
        "username": "admin",
        "password": "root",
        "hostname": "pixiumdigital.com"
    }
}

Author

Burlet Mederic

mederic.burlet@pixiumdigital.com

0.0.19

3 years ago

0.0.18

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.7

3 years ago