Initial commit

This commit is contained in:
2026-01-07 14:39:50 +08:00
commit 459c49ec41
30 changed files with 10501 additions and 0 deletions

33
projects/express-app.ts Normal file
View File

@@ -0,0 +1,33 @@
export const EXPRESS_APP = {
'index.js': {
file: {
contents: `import express from 'express';
const app = express();
const port = 3111;
app.get('/', (req, res) => {
res.send('Welcome to a WebContainers app! 🥳');
});
app.listen(port, () => {
console.log(\`App is live at http://localhost:\${port}\`);
});`,
},
},
'package.json': {
file: {
contents: `
{
"name": "example-app",
"type": "module",
"dependencies": {
"express": "latest",
"nodemon": "latest"
},
"scripts": {
"start": "nodemon --watch './' index.js"
}
}`,
},
},
};