LogoLogo
πŸ‡ΊπŸ‡Έ EN
πŸ‡ΊπŸ‡Έ EN
  • πŸ‘‹Welcome
  • Suport
    • ☁️How to Host
      • πŸ€–Bots
        • πŸ”ŒBot
        • 🧩VSCode Extension
        • ⌨️CLI
      • 🌎Website and APIs
        • πŸ”ŒBot
        • 🧩VSCode Extension
        • ⌨️CLI
    • ⌨️Languages
      • 🟨JavaScript
        • πŸ“„Create the package.json
      • 🐍Python
        • πŸ“„Create the requirements.txt
      • β˜•Java
      • πŸ’ŽRuby
        • πŸ“„Create the Gemfile
      • 🐿️Go
      • 🐘Php
      • πŸ¦€Rust
        • πŸ“„Create the Cargo.toml
    • ⛓️Integrations
      • 🌐Your Own Domain
      • πŸ™GitHub and GitLab
      • 🎧Lavalink
      • πŸ’ΎDatabase
        • MongoDB Atlas (mLab)
    • ❓Frequently Asked Questions (FAQ)
      • How to compress my files?
      • Discloud ModMail (Ticket)
      • How do I get my bot's ID?
      • What is the main file?
      • Configuring Puppeteer
      • How to report an offender?
      • Why can't I access my website?
      • Very Heavy BOT
    • βš’οΈCommands
      • How to get API token
      • How to integrate Github
    • 🀲Donations
  • configuration
    • βš™οΈdiscloud.config
      • πŸ“¦APT (Install Packages)
      • πŸ—οΈVERSION (Switch between Versions)
  • πŸ–₯️local environment
    • βš™οΈInstall
      • 🟨JavaScript (NodeJS)
      • 🐍Python
      • πŸ’ŽRuby
      • πŸ¦€Rust
  • API
    • πŸ“‘Using the API
    • πŸ”—Routes
  • About
    • 🎨Discloud Brand
      • Name origin
      • Visual Identity
  • πŸ”—Links
    • 🌎Website
    • πŸ“ŠDisCloud Status
  • πŸ“œLegal
    • πŸ“„Terms of Service (TOS)
Powered by GitBook
On this page
  • Files
  • Compressing the Files
  • ✍ Hosting your bot
  • Hosting Your Site

Was this helpful?

Edit on GitHub
  1. Suport
  2. Languages

JavaScript

Learn how to host your JavaScript bot on the DisCloud

PreviousLanguagesNextCreate the package.json

Last updated 1 year ago

Was this helpful?

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?

  • Doubts about creating your package.json file?

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:

✍ Hosting your bot

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.

app.listen(8080);

Hosting Your Site

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 .

⌨️
🟨
🌎
How to compress my files?
☁️How to Host
main file
πŸ“
πŸ—œοΈ
Click here
πŸ“„Create the package.json
Click here