Skip to content

Website for the Discord bot Bento. Made with next.js and tailwindcss

License

Notifications You must be signed in to change notification settings

thebentobot/bento-web

Repository files navigation

Website for Bento 🍱

This website is for Bento 🍱 a Discord bot with server moderation tools and various entertaining commands.

The Bento 🍱 website is written in TypeScript and powered by the React Framework Next.js, with CSS from tailwindcss, and a PostgreSQL database.

List of website features

Getting Started

Dependencies

  • A PostgreSQL Database, or any database where you can store total user count, total server count, and global leaderboard data (perhaps per server too if you want to support dynamic routing).

Installing the database side of Bento 🍱

  • Either locally run/install PostgreSQL or get a PostgreSQL database elsewhere. Other SQL databases may be possible considering Bento uses Sequelize, but it is not tested and isn't recommended because the code may use PostgreSQL specific features, and it requires additional changes to the code. May be possible to use NoSQL with refactoring of code.
  • The creation of the database tables. An SQL DDL schema file can be found here

Installing Bento 🍱 web

  • git clone https://github.com/thebentobot/bento-web.git or download ZIP.
  • npm install assuming you have installed node.js
  • Create a dotenv file with the environment variables: DBdatabase=[NAME OF YOUR DATABASE], DBusername=[NAME OF YOUR DATABASE user], DBpassword=[PASSWORD FOR YOUR DATABASE USER] and host=[IP FOR YOUR DATABASE]

Executing Bento 🍱

  • npm run build
  • npm start

Development

This website is mainly developed by Christian.

Pull requests are very welcome if the features/changes makes sense and are up to par in quality.

License

This project is licensed under the AGPL-3.0 License

The avatar illustration is done by Freepik.