🖥️
Discord Base
  • Welcome
  • Getting Started
    • Quickstart
  • Templates
    • Command
    • Events
    • Component
    • Route
  • Utilities
    • Colors
    • Logger
    • Remote MySQL
    • Local MySQL
    • Query Builder
  • DataTypes
    • Commands
    • Events
    • Routes
Powered by GitBook
On this page
  • Installing dependencies
  • Deprecation warnings
  • Using Docker
  1. Getting Started

Quickstart

PreviousWelcomeNextCommand

Last updated 2 months ago

Requirements: Please install (version 19 or higher) before proceeding .

Step 1: Clone the repository:

git clone https://github.com/hiraeeth/DiscordTS-Base.git

Step 2: Change directory to the repository

cd DiscordTS-Base

Installing dependencies

Step 1: Edit .env.example and rename it to .env

Step 2: Install dependencies

npm install --save

Step 3: You can start the script with the one of the following commands

npm run dev
npm run start

Deprecation warnings

Step 1: Run this command to automatically fix vulnerabilities if possible.

npm audit fix

Using Docker

docker-compose up -d
version: '3.8'

services:
  app:
    build: .
    image: discordbot:latest
    container_name: discordbot
    ports:
      - "3000:3000" # You can skip this if you don't have a web server
    volumes:
      - ./:/usr/src/app
    environment:
      - NODE_ENV=production
FROM node:latest

WORKDIR /usr/src/app
COPY package*.json ./

RUN npm install -g typescript && npm install -g tsx

COPY . .

EXPOSE 3000
CMD ["npm", "start"]
Node.js