Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ MAIL_PASSWORD=my-app-password
MAIL_USERNAME=mail@example.com
MAIL_SERVICE=gmail
PORT=5000
NODE_END=dev
NODE_ENV=dev
GITHUB_TOKEN=a-gh-token
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
Simple server to handle form submissions via email for drawDB.
This is a simple server that serves as the backend for drawDB. It has 2 functions:

### Get started
1. Send bug reports via email
2. Handle interfacing with the GitHub REST API

Set up the environment variables following `.env.sample`
### Getting Started

Set up the environment variables by following `.env.sample`

```bash
git clone https://github.com/drawdb-io/drawdb-server.git
cd drawdb-server
npm install
npm start
```

### Docker Compose run in dev

```bash
docker compose up -d
```
18 changes: 18 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
services:
drawdb-server:
image: node:20-alpine
container_name: drawdb-server
ports:
- ${PORT:-5000}:${PORT:-5000}
working_dir: /var/www/html
volumes:
- ./:/var/www/html
command: sh -c "npm install && npm run dev"
networks:
- default
env_file:
- .env

networks:
default:
driver: bridge