aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: cd4ed5e5675f1f84bd292963224f2f19e45d3cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Website
This repository hosts the source code which (eventually) powers my website: https://leonardobishop.com/

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 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.