Initial commit: Dokku Docker Compose plugin with test infrastructure
This commit is contained in:
12
tests/test-apps/simple-nodejs/package.json
Normal file
12
tests/test-apps/simple-nodejs/package.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "simple-nodejs",
|
||||
"version": "1.0.0",
|
||||
"description": "A simple Node.js app for testing",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"start": "node server.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.17.1"
|
||||
}
|
||||
}
|
||||
10
tests/test-apps/simple-nodejs/server.js
Normal file
10
tests/test-apps/simple-nodejs/server.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 5000;
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send('Hello from Node.js app!');});
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Server running on port ${PORT}`);
|
||||
});
|
||||
Reference in New Issue
Block a user