A simple Node.js web app.
- Run
git clone https://github.com/the-real-finnventor/simple_node_app.git
to clone the repo. - Run
cd simple_node_app
to change into the directory.
git clone https://github.com/the-real-finnventor/simple_node_app.git
cd simple_node_app
- Run
to install all requirements for this project.
npm install
- Run
to be able to use the
echo alias nodeapp="$PWD"/index.js >> ~/.zprofile
nodeapp
command anywhere.
Usage: index [OPTIONS]...
Options:
-V, --version output the version number
-p, --port <value> The port that web app runs on. (default: 8000)
-h, --help display help for command
From the simple_node_app
directory, run
echo "MANPATH $PWD" | sudo tee -a /private/etc/man.conf
so anywhere you go you can run
man nodeapp
and get my custom manpage.