1.4.7 • Published 4 years ago

wideweb v1.4.7

Weekly downloads
45
License
MIT
Repository
github
Last release
4 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

4 years ago

1.4.7

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.1

5 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago