> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Host your Website/API on Square Cloud

> Complete guide for hosting websites and APIs on Square Cloud using the squarecloud.app configuration file with professional implementation.

## Introduction

To host websites and APIs on Square Cloud, it's essential to follow proper configuration procedures and meet the necessary technical prerequisites. This comprehensive guide will present the entire professional implementation process.

### Technical Prerequisites

* **Square Cloud Account**: Create your account through the [signup page](https://squarecloud.app/en/signup), using your email address for registration.
* **Active Paid Plan**: It's necessary to have a paid plan to ensure adequate resources and optimized performance. Check our [available plans](https://squarecloud.app/en/pricing) and choose the most suitable for your needs.

## Square Cloud Configuration File

<Card title="Learn about: how to create the configuration file for Square Cloud." icon="link" href="https://docs.squarecloud.app/en/getting-started/config-file">
  The squarecloud.app file is an essential configuration file that will be used to configure your application on Square Cloud. It defines name, description, version, main file, among other fundamental configurations.
</Card>

### Essential Parameters for Websites

The **website port** must be configured as **80**. For static websites, it's not necessary to define the `START` parameter.

**Main parameters of the squarecloud.app configuration file:**

* `SUBDOMAIN`: For website hosting, define this parameter with your desired subdomain.
* `START`: Custom startup command (when necessary).

<Note>The website URL will be: `my-subdomain-parameter`.squareweb.app</Note>

### Configuration Examples

**Example 1: Static website without custom startup command**

```systemd theme={null}
MAIN=index.html
MEMORY=512
VERSION=recommended
DISPLAY_NAME=My simple static website!
SUBDOMAIN=mysite-simple-website
```

**Example 2: Website with all parameters and custom startup command**

```systemd theme={null}
MAIN=index.js
MEMORY=512
VERSION=recommended
DISPLAY_NAME=My simple Next.js website!
SUBDOMAIN=mysite-nextjs-website
START=npm run build && npm run start
```

## Support for Multiple Technologies

Square Cloud offers comprehensive support for various web development technologies, providing flexibility in choosing the most suitable tech stack for your project.

<CardGroup cols={2}>
  <Card title="React" icon="react" href="https://docs.squarecloud.app/en/tutorials/website/react">
    Learn how to host your React website on Square Cloud.
  </Card>

  <Card title="Next.js" icon="node-js" href="https://docs.squarecloud.app/en/tutorials/website/nextjs">
    Learn how to host your Next.js website on Square Cloud.
  </Card>

  <Card title="NestJs" icon="js" href="https://docs.squarecloud.app/en/tutorials/api/nestjs">
    Learn how to host your NestJs application on Square Cloud.
  </Card>

  <Card title="Vite" icon="rocket" href="https://docs.squarecloud.app/en/tutorials/website/vite">
    Learn how to host your Vite website on Square Cloud.
  </Card>

  <Card title="Vue" icon="vuejs" href="https://docs.squarecloud.app/en/tutorials/website/vue">
    Learn how to host your Vue website on Square Cloud.
  </Card>

  <Card title="Flask" icon="flask" href="https://docs.squarecloud.app/en/tutorials/api/flask">
    Learn how to host your Flask application on Square Cloud.
  </Card>

  <Card title="Django" icon="python" href="https://docs.squarecloud.app/en/tutorials/api/django">
    Learn how to host your Django application on Square Cloud.
  </Card>

  <Card title="Lavalink" icon="java" href="https://docs.squarecloud.app/en/tutorials/how-to-create-your-lavalink-server">
    Learn how to host your Lavalink server and stream high-quality music to your Discord bot.
  </Card>
</CardGroup>

## Final Considerations

Following these technical guidelines, you'll have your website or API running optimally on Square Cloud. The platform offers robust and reliable infrastructure to ensure your application operates with maximum performance.

## Contact us

If you continue facing **technical difficulties**, our **specialized support team** is available to assist you. [**Contact us**](https://squarecloud.app/en/support) and we'll be happy to help you resolve any issue.
