-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,166 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"customizations": { | ||
"vscode": { | ||
"sonarlint.pathToNodeExecutable": "node", | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
} | ||
}, | ||
"dockerComposeFile": "../docker-compose.dev.yaml", | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": {}, | ||
"ghcr.io/devcontainers/features/git:1": {}, | ||
"ghcr.io/devcontainers/features/java:1": {} | ||
}, | ||
"forwardPorts": [ | ||
8080 | ||
], | ||
"name": "finki-discord-bot", | ||
"postCreateCommand": "npm i", | ||
"service": "bot", | ||
"shutdownAction": "stopCompose", | ||
"workspaceFolder": "/app" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
# Node modules | ||
node_modules | ||
|
||
# Git | ||
.git | ||
.gitignore | ||
|
||
# Docker | ||
.dockerignore | ||
Dockerfile* | ||
docker-compose* | ||
|
||
# Output | ||
dist | ||
|
||
# Logs | ||
bot.log | ||
|
||
# User defined folders | ||
# Configuration | ||
config | ||
files | ||
sessions | ||
|
||
# Environment variables | ||
.env | ||
# Environment | ||
.env* | ||
|
||
# GitHub | ||
.github | ||
*.md | ||
LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,9 +195,9 @@ files | |
config | ||
|
||
# Database | ||
db | ||
db/ | ||
migration/ | ||
pgadmin | ||
pgadmin/ | ||
|
||
# Compiled output | ||
dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ It's recommended, but not required to run this inside a Docker container. | |
|
||
For development purposes, be sure to run `npm run prepare` to install the Git pre-commit hooks. | ||
|
||
Also, this project contains a dev container configuration for hot reloading. If you encounter issues in the dev container with Prisma, then run `npm run generate` to regenerate the Prisma client. | ||
|
||
### Installation (Docker) | ||
|
||
1. Clone the repository: `git clone [email protected]:Delemangi/finki-discord-bot.git` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version: "3.8" | ||
|
||
services: | ||
database: | ||
container_name: finki-database-dev | ||
image: postgres:16 | ||
restart: unless-stopped | ||
ports: | ||
- "${POSTGRES_PORT}:${POSTGRES_PORT}" | ||
env_file: | ||
- .env | ||
volumes: | ||
- ./db:/var/lib/postgresql/data | ||
|
||
bot: | ||
container_name: finki-bot-dev | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile | ||
target: development | ||
image: finki-discord-bot-dev:latest | ||
restart: unless-stopped | ||
env_file: | ||
- .env | ||
depends_on: | ||
- database | ||
volumes: | ||
- .:/app | ||
command: ["npm", "run", "dev"] | ||
|
||
pgadmin: | ||
container_name: finki-pgadmin-dev | ||
image: dpage/pgadmin4:8 | ||
restart: unless-stopped | ||
ports: | ||
- 8080:80 | ||
environment: | ||
- [email protected] | ||
- PGADMIN_DEFAULT_PASSWORD=test | ||
depends_on: | ||
- database | ||
volumes: | ||
- ./pgadmin:/var/lib/pgadmin |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"exec": "node --loader ts-node/esm ./src/main.ts", | ||
"ext": "*", | ||
"legacyWatch": true, | ||
"watch": [ | ||
"src" | ||
], | ||
"watchOptions": { | ||
"interval": 1000 | ||
} | ||
} |
Oops, something went wrong.