🟨JavaScript

Learn how to host your JavaScript bot on the DisCloud

πŸ“ Files

You should not send all your application files to .zip, there are some exceptions, they are:

- Folder node_modules
- File package-lock.json
- Folder .git
  • Have trouble finding your main file? Click here

  • Doubts about creating your package.json file? Click here

πŸ“„pageCreate the package.json

πŸ—œοΈ Compressing the Files

Select only the necessary files as mentioned above and create your .zip

For more details on how to Compress your Files according to your Operating System, you can see below:

pageHow to compress my files?

✍ Hosting your bot

☁️pageHow to Host

🌎 Hosting Your Site

This feature needs some basic requirements to be able to be used, please check the requirements here before continuing

Using Express

Express is a widely used framework for building Web sites and APIs.

By default Express is configured to listen to port 3000, you need to configure it to listen to port 8080, look for the following line usually found in your main file.

app.listen(8080);

Last updated