2024-12-03 00:58:36 -05:00
# pontus-mail
Landing page for p0ntus mail
2024-12-03 01:24:35 -05:00
# Self hosting
## Traditional Node.js
1. Clone the repo
```bash
git clone https://github.com/ihatenodejs/pontus-mail.git
cd pontus-mail
```
2. Copy the example `docker-compose.yml`
```bash
mv docker-compose.yml.example docker-compose.yml
```
2024-12-04 20:34:11 -05:00
3. Copy the example `donations.json`
2024-12-03 01:24:35 -05:00
```bash
2024-12-04 20:34:11 -05:00
mv donations.json.example donations.json
2024-12-03 01:24:35 -05:00
```
2024-12-04 20:34:11 -05:00
4. Install dependencies
2024-12-03 01:24:35 -05:00
```bash
2024-12-04 20:34:11 -05:00
npm install
```
4. Start the server
```bash
node app.js
2024-12-03 01:24:35 -05:00
```
2024-12-04 20:34:11 -05:00
You will now have a fully functioning Node.js Express server, which will be running on port `3000` .
2024-12-03 01:24:35 -05:00
## With Docker
You can also use Docker to self-host pontus-mail's frontend. Make sure you have docker-compose or docker-compose-plugin installed on your system.
1. Clone the repo
```bash
git clone https://github.com/ihatenodejs/pontus-mail.git
cd pontus-mail
```
2. Copy the example `docker-compose.yml`
```bash
mv docker-compose.yml.example docker-compose.yml
```
2024-12-04 20:34:11 -05:00
3. Copy the example `donations.json`
2024-12-03 01:24:35 -05:00
```bash
2024-12-04 20:34:11 -05:00
mv donations.json.example donations.json
2024-12-03 01:24:35 -05:00
```
2024-12-04 20:34:11 -05:00
4. Start and build Docker containers
2024-12-03 01:24:35 -05:00
```bash
2024-12-04 20:34:11 -05:00
docker compose up -d --build
2024-12-03 01:24:35 -05:00
```
2024-12-04 20:34:11 -05:00
You will now have a fully functioning Node.js Express server, which will be running on the port specified in `docker-compose.yml` , and internally on port `3000` .