# After forking the repository, copy the url and run:
$ git clone https://gitlab.com/[USERNAME]/kbot.git
$ cd kbot
$ cp apps/bot/.env.example apps/bot/.env
$ yarn install
$ yarn build
Using devcontainers allows you to quickly setup a dev environment and you dont need to manually start the required services. PostgreSQL, Redis, and Meilisearch will be started automatically.
If you wish to customize your devcontainers environment with your dotfiles,
you can set the DOTFILES_REPO
environment variable with your dotfiles reportsitory URL. This will run any install script in your dotfiles repo and apply it to the container.
Open the command palette and select Dev Containers: Rebuild and Reopen in Container
.
This will build the Dockerfile
in .devcontainer/
along with the settings in devcontainer.json
and docker-compose.workspace.yml
.
For quickly spinning up a development environment, you can run the docker-compose.dev.yml
file after creating the network.
$ docker network create KBot-network
# apps/bot/.env
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASS=password
DATABASE_URL=postgresql://user:password@localhost:5432/kbot
MEILI_HOST=127.0.0.1
MEILI_PORT=7700
MEILI_APIKEY=password
$ docker compose -f apps/bot/docker-compose.dev.yml up -d
If you wish to be recognized for your contibutions to the repository, you can add a comment to your PR with:
@all-contributors please add @<username> for <contributions>
More information on the command can be found at: https://allcontributors.org/docs/en/bot/usage