Skip to content

Dev #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 25, 2025
Merged

Dev #10

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

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
[email protected]
MAIL_SERVICE=gmail
PORT=5000
NODE_END=dev
NODE_ENV=dev
GITHUB_TOKEN=a-gh-token
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
This is a simple server that serves as the backend for drawDB. It has 2 functions:

1. Send bug reports via mail
2. Handle interfacing with the GitHub rest api
1. Send bug reports via email
2. Handle interfacing with the GitHub REST API

### Get started
### Getting Started

Set up the environment variables following `.env.sample`
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