Quick Start
Step 0. Download Project
git clone https://github.com/Proladon/MixCat.git
Or directly download the project as a .zip file:Download
Step 1. Environment Variable File
Rename .env.example
in the project to .env.production
and fill in the necessary fields:
BOT_TOKEN
CLIENT_ID
GUILD_ID
NOTE
If you need separate development and production environments, you can copy .env.example
again and rename it to .env.development
.
Step 2. Install Dependencies
In the terminal at the project path, simply run the install dependencies command:
yarn install
npm install
Step 3. Start
In the terminal at the project path, simply run the start command:
Run in
development environment
, which will read.env.development
:Running the dev environment defaults to
vite-node's watch
mode, meaning you can directly modify files andvite-node
will detect the file changes and automatically restart to achievehot reload
.If you do not want to run this mode, you just need to go to the
package.json
file's scripts section and remove the--watch
parameter from thedev
option.
yarn dev
npm run dev
- Run in
production environment
, which will read the variables in.env.production
:
yarn start
npm run start