> For the complete documentation index, see [llms.txt](https://djs.docs.namanvrati.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://djs.docs.namanvrati.me/get-started/basic-setup.md).

# Basic Setup

Preparing basic one-time-setup (permanent) for all kinds of discord bots you would have imagined.

Before getting started we need to prepare a permanent coding environment, isn't it?&#x20;

*All of this process should be one time process to do, for countless discord bots to create in your imagination. Let's get straight into it.*

{% hint style="info" %}
Feel free to skip this section if you already have this one-time-setup configured on your local device.
{% endhint %}

### Short and Sweet Context:

1. Installing A [Code Editor](https://code.visualstudio.com/) ([**Visual Studio Code - Most Recommended**)](https://code.visualstudio.com/)
2. Installing [Node.js](https://nodejs.org/en/) (To manage [Node.js](https://nodejs.org/en/). based discord bots)
3. Installing Git (Either [Git CLI](https://cli.github.com/) or Basic [Git Scm](https://git-scm.com/))

## Installing Visual Studio Code

{% hint style="danger" %}
**This guide is based on Visual Studio Code only.** We strongly recommend you using Visual Studio Code because it is free to use, open source - and runs everywhere. What else you need?
{% endhint %}

Visual Studio Code runs everywhere. You know what to do, and how to install an application. ~~*(Like seriously if you don't know, why are you even trying to code when you get no knowledge of basic computer softwares)*~~

{% embed url="<https://code.visualstudio.com/docs>" %}
*<mark style="color:red;">Bring the habit to read docs. You will suffer later otherwise.</mark>*
{% endembed %}

## Installing Node.js

Node.js is your environment of coding discord bots based on discord.js.

{% hint style="danger" %}
**DO NOT INSTALL LTS NODE VERSION!** You have been warned. Discord.js requires at least Node.js 16.x and above in order to work. **You have to download the "Current" aka latest version that is above 16.**
{% endhint %}

Get started downloading Node.js at the below link and install it as you do for other packages or applications based on your operating system.

{% embed url="<https://nodejs.org/en/download/current>" %} <mark style="color:orange;">Get the latest node.js version (16+) in order for discord.js to work.</mark>
{% endembed %}

## Installing Git

You have a choice to either install [Git-Scm](https://git-scm.com/) or [Git CLI](https://cli.github.com/). Both are equally good (as per my opinion), but still I do recommend using Git CLI over Git-Scm ~~*(Ignoring the fact that I use Git-Scm)*~~ So yeah!

{% embed url="<https://github.com/cli/cli#installation>" %}
Git CLI Installation Steps as per their readme. I'm sure why should I copy it if it already exists there.
{% endembed %}

{% embed url="<https://git-scm.com/downloads>" %}
Git-Scm Downloads - Install like you did for Node.js
{% endembed %}

#### And that was all, I guess

If you have made till here, congratulations! *You might not need to visit this page again anymore.*&#x20;

Let's continue to \**actually\** making a discord bot of your dreams!
