aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2021-12-20 15:20:12 +0000
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2021-12-20 15:20:12 +0000
commitda981411609e3d2cbd269ccae228fb9740970c5f (patch)
treec10281f09f4fd83fc9b24dc0f258847063c58e50
parentf5025a42636f75a4e1c519f97ad62920c30278ba (diff)
Update README
-rw-r--r--README.md19
1 files changed, 17 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2d787f3..cd4ed5e 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,22 @@
# Website
This repository hosts the source code which (eventually) powers my website: https://leonardobishop.com/
-The web app runs on NodeJS using [Express](https://www.npmjs.com/package/express) and renders web pages with [ejs](https://www.npmjs.com/package/ejs). It parses content pages written in a markup language (currently [Wikitext](https://en.wikipedia.org/wiki/Help:Wikitext)) from the `pages/` directory and renders them as HTML.
+The app is written in TypeScript and runs on NodeJS using [Express](https://www.npmjs.com/package/express), rendering web pages with [ejs](https://www.npmjs.com/package/ejs). It parses content pages written in a markup language (currently [Wikitext](https://en.wikipedia.org/wiki/Help:Wikitext)) from the `pages/` directory and renders them as HTML.
-## Building
+## Building and running
Instructions to build and deploy the web app will be written here whenever it is finished.
+
+### Using docker
+```
+$ docker build -t website .
+$ docker run -p 3000:3000 website
+```
+
+### Building directly
+```
+$ npm i -g typescript
+$ npm ci --only-production
+$ tsc && node build/index.js
+```
+
+The application will be listening on port 3000.