napnux
v1.0.16
Published
A low-overhead and speedy web framework for Node.js
Downloads
4
Readme
A low-overhead and speedy web framework for Node.js.
Example Usage
const napnux = require("napnux");
const port = 3001;
napnux()
.get("/", (req, res) => {
res.end("Hello World");
})
.start(port, () => {
console.log(`Your first app listening on port ${port}`);
});
Installation
This is a Node.js module available through the npm registry.
npm install napnux
Follow our installing guide for more information.
Features
- High performance
- Efficient routing
- Intuitive app architecture
- Command-line interface for rapid project and app generation
Link to Docs
Quick Start
The easiest way to begin with Napnux is by using the command-line interface (CLI) to generate a new project.
First, install Napnux globally:
npm install -g napnux
Then create a project with the following command:
nux create-project <projectName>
To start the development server, navigate to the project directory and run:
cd <projectName>
npm run dev
Your development server will be accessible at: http://localhost:3001.