Skip to content

pavlotech/Builder

Repository files navigation

Pre-requisites

  • Install Node.js

Getting started

  • Rename the process.env file in the root directory of the project to .env
  • Set the token in the .env file to the variable TOKEN=""
  • Set the database url in the .env file to the variable DATABASE_URL=""
  • By default, the project is configured to use SQLite as the database.
  • Install all packages
npm i
  • Generate the Prisma client
npx prisma generate
  • Apply the migrations to the database
npx prisma migrate dev
  • To build the project
npm run build
  • To start the bot in production mode
npm start
  • To start the bot in development mode
npm run dev
  • To start the bot in development mode with auto build
npm run dev:build

Note:

  • Make sure to have a .env file in the root directory of the project with the correct variables and values.
  • The npm run dev and npm run dev:build commands are used to automatically re-start the bot when there are changes in the code.
  • The npm run build command is used to compile the TypeScript code into JavaScript.
  • The npm start command is used to start the bot in production mode.
  • The npx prisma generate command is used to generate the Prisma client.
  • The npx prisma migrate dev command is used to apply the migrations to the database.

Credits

This project was created by Pavlotech

The architecture of this project is based on Philainel

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published