Get started with egg.js CDN
MIT licensed
Powerful Node.js framework: Egg.js - middleware, routing, MVC, scalable web apps.
Tags:- easter eggs
- konami code
Stable version
Copied!
How to start using egg.js CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with egg.js CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/egg.js/1.0/egg.min.js"></script>
</head>
<body>
<script>
// Initialize Egg.js application
window.egg = new Egg.Application({
root: '/',
port: 7000,
debug: false,
});
// Define a simple route
egg.router.get('/', async (ctx, next) => {
ctx.body = 'Hello, Egg.js!';
});
// Start the application
egg.start();
</script>
</body>
</html>
Copied!
Copied!