diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-12-20 15:20:12 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-12-20 15:20:12 +0000 |
| commit | da981411609e3d2cbd269ccae228fb9740970c5f (patch) | |
| tree | c10281f09f4fd83fc9b24dc0f258847063c58e50 /README.md | |
| parent | f5025a42636f75a4e1c519f97ad62920c30278ba (diff) | |
Update README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -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. |
