Kalkulusták MMP is a community driven Discord server which provides an anonym way to rate the teachers of University of Szeged. It was created to partially replace the Mark My Professor website, because it isn't maintaned anymore.
- Node.js, TypeScript
- discord.js, discordx npm packages
- Prisma ORM
- MySQL
- Docker
Install dependencies:
npm install
# or
yarn install
Create a new file called .env and add the following environment variables:
DATABASE_URL=mysql://kalkulusta:<MYSQL_PASSWORD>@localhost:3306/kalkulusta
DISCORD_TOKEN=
GUILD=
SEXY_EMOJI=
REPORT_EMOJI=
UP_EMOJI=
DOWN_EMOJI=
LOG_CHANNEL=
Generate prisma client:
npx prisma generate
# or
yarn prisma generate
Run the development server:
npm run dev
# or
yarn dev
Run the production server:
npm run build && npm run start
# or
yarn build && yarn start
Create a new files called .env.mysql and add the following environmnet variables:
MYSQL_DATABASE=kalkulusta
MYSQL_USER=kalkulusta
MYSQL_PASSWORD=
MYSQL_ROOT_PASSWORD=
Run command:
docker-compose up -d --build