https://github.com/kapilkashyap/yoda
A basic HTTP server made using NodeJS which is lightweight, has a small footprint yet is powerful 💣
https://github.com/kapilkashyap/yoda
front-end-development http-server http-webserver httpserver javascript js-server node node-server node-web-server node-webserver nodejs stateless stateless-server web-server webserver yoda
Last synced: 8 days ago
JSON representation
A basic HTTP server made using NodeJS which is lightweight, has a small footprint yet is powerful 💣
- Host: GitHub
- URL: https://github.com/kapilkashyap/yoda
- Owner: kapilkashyap
- License: mit
- Created: 2020-11-04T11:43:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T17:58:59.000Z (over 1 year ago)
- Last Synced: 2024-08-04T20:05:46.720Z (over 1 year ago)
- Topics: front-end-development, http-server, http-webserver, httpserver, javascript, js-server, node, node-server, node-web-server, node-webserver, nodejs, stateless, stateless-server, web-server, webserver, yoda
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yoda
A basic HTTP server made using NodeJS which is lightweight, has a small footprint yet is powerful.
Usually, you would build a Node application and use a Node framework like [Express JS](https://github.com/expressjs/express) to build and configure a server to serve that application. It is a one-one mapping, one application, one server. On the contrary **yoda** is a simple HTTP webserver which allows you to host multiple front-end applications :slightly_smiling_face:
#### Prerequisite
* [Node.js](https://nodejs.org/en/download/) (mandatory)
* [Git](https://git-scm.com/downloads) (optional)
#### How to install
You can either clone the repository or download the archive and unzip it
#### Will I need to build
Nope! This application does not have any npm dependencies and is ready to use OOTB 😎
#### How to use
Open your favourite CLI pointing to the root of the application and execute
`node .\server.js`
#### Who should use this
Anyone trying to make a front-end application (ReactJS/Angular/HTML/CSS/JS/JSON/Images)
#### Where to deploy applications
By default, you can create/deploy your application under **webapps** directory. However, this can be changed in the config.json
#### Configurations
Property | Default
-------- | -------
base | /webapps (required)
host | localhost (default)
-h | Command line property to pass a host name
port | 3333 (default)
-p | Command line property to pass a port
deploy | /examples (default, this allows you to have more than one deployment directory)
-d | Command line property to pass a deployment directory
info | false (set to true to display server configuration details, false by default)
-i | Command line property to enable showing server configuration on console
ignore | { directories: Array of directories that can be ignored }
imageTypeExtensions | Array of various type extensions for image files that are allowed to be served
#### Why to use
It's quick, simple and lightweight :wink:
#### License
MIT Licensed
Copyright (C) 2020 Kapil Kashyap