Quick Start
Step 0. Download Project
git clone https://github.com/Proladon/MixCat.gitOr directly download the project as a .zip file:Download
Step 1. Environment Variable File
Rename .env.example in the project to .env.productionand fill in the necessary fields:
BOT_TOKENCLIENT_IDGUILD_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 installnpm installStep 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 watchmode, meaning you can directly modify files andvite-nodewill 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.jsonfile's scripts section and remove the--watchparameter from thedevoption.
yarn devnpm run dev- Run in
production environment, which will read the variables in.env.production:
yarn startnpm run start