1.4.7 • Published 3 years ago

wideweb v1.4.7

Weekly downloads
45
License
MIT
Repository
github
Last release
3 years ago

code style downloads license npm version

wideweb

Micro framework for the web

About

This tool provides a CLI that aims at scaffolding the fundamental structure of a web application and a fast web engine by putting together best in class libraries neatly integrated with minimal glue code and sensible defaults, making it for a lean but resourceful project foundation.

Usage

npm install wideweb -g
wideweb new app-name
cd app-name
npm start

Adding routes

Edit the sample server.js on our new app and add new functions, they will be routed automatically, e.g.

wideweb.route({
	getRoot: (req, res) => {
		res.render("index.html");
	},
	getHello: (req, res) => {
		res.send("Hello, world!");
	}
});

Thanks to a simple convention, the new function will be accessible under http://localhost:3000/hello via GET HTTP method, without the need to manually create complicated or redundant routing, as the function name is the route and vice-versa, while the req and res parameters are pure express objects and we can also render views as demonstrated above.

1.4.6

3 years ago

1.4.7

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago