Fill the .env.example
and rename to .env
If you don't use MariaDB, some hard-coded stuff you need to do by yourself.
You can just build it and run it in single command docker-compose up
If you want to run in the background: docker-compose up -d
Prepare the clean database with utf8mb4
encoding and run it
Recommand: Using Docker
version: '3'
services:
mariadb:
image: mariadb
ports:
- '3306:3306'
restart: always
environment:
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=yes
- MARIADB_USER=user
- MARIADB_DATABASE=discord_bot
- MARIADB_CHARACTER_SET=utf8mb4
- MARIADB_COLLATE=utf8mb4_general_ci
volumes:
- data:/var/lib/mysql
Migrate the schema
npm run migrate
Node.js 18.12.0+ is required.
npm install
npm run app