diff --git a/README.md b/README.md index d50dcc7..b9f0adf 100644 --- a/README.md +++ b/README.md @@ -15,5 +15,5 @@ Note: I'm assuming you're running Ubuntu 22.04. ## How to run -* You can get the dev containers up and running with `npm run start:containers`. +* You can get the dev containers up and running with `npm run start:containers`. You can visit the app at `localhost`. * If you would rather only run the express app locally, you can just do `npm run start` instead. diff --git a/docker-compose.yml b/docker-compose.yml index d68a64b..4644ca8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,8 @@ services: - "80:80" volumes: - ./caddy:/etc/caddy + networks: + - app_network depends_on: - express diff --git a/package.json b/package.json index bfdd5e5..49966b1 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,9 @@ "start": "node src/app.js", "start:containers": "docker compose up -d --build", "stop:containers": "docker compose down", - "purge-dev-data": "rm -rf ./container-data", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" -} +} \ No newline at end of file diff --git a/src/app.js b/src/app.js index 59d8ae9..88e081e 100644 --- a/src/app.js +++ b/src/app.js @@ -33,6 +33,8 @@ const apiRoutes = require('./routes/apiRoutes'); app.use('/', webRoutes); app.use('/api', apiRoutes); +app.use(express.static(path.join(__dirname, 'public'))); + app.listen(port, () => { console.log(`Server started on port ${port}`); }); diff --git a/src/public/kitty.jpeg b/src/public/kitty.jpeg new file mode 100644 index 0000000..ed1ff6f Binary files /dev/null and b/src/public/kitty.jpeg differ diff --git a/src/views/index.ejs b/src/views/index.ejs index cc34b4a..3448a29 100644 --- a/src/views/index.ejs +++ b/src/views/index.ejs @@ -13,6 +13,9 @@
Your session's UUID: <%= uuid %>
+Here's a kitty, cause why not
+