> For the complete documentation index, see [llms.txt](https://docs.toystack.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toystack.ai/backend-quickstarts/node-js.md).

# Node JS

### Step 1: Import and Activate repository

Click on import and activate repository button

<figure><img src="/files/6DOcwykH7rBhOADhExEI" alt=""><figcaption></figcaption></figure>

Now connect your repositories or click on sync with Github.&#x20;

<figure><img src="/files/WWYNViCj0DUPmiImjJ1j" alt=""><figcaption></figcaption></figure>

Configure Toystack application

<figure><img src="/files/QhrbppH1TbYOEsXUuptP" alt=""><figcaption></figcaption></figure>

### Step 2: Connect repository to Toystack

Connect all repositories or selected repositories you want to deploy on toystack

&#x20;

<figure><img src="/files/sPw9PCh6MGI4JrF0MFeW" alt=""><figcaption></figcaption></figure>

You will be able to see all the connected repositories in the dashboard and click on them to proceed with the project configuration

<figure><img src="/files/Ir5TxQgF2fmFXLzFTOd7" alt=""><figcaption></figcaption></figure>

### Step 3: Configure project settings

* Choose Node as framework if you are using node, and if you are using Dockerfile in your project you can use docker as an option.&#x20;
* Provide build command, dependency installation command, root directory and give right port number.
* You can provide environmental variables if present or choose to save changes and proceed with next step.

<figure><img src="/files/y47hYyI2IVRNwWRXjC3v" alt=""><figcaption></figcaption></figure>

## Step 4: Choose a plan

Choose a plan of your choice and activate it

<figure><img src="/files/cWa6RjkgngmQFzPFFWRv" alt=""><figcaption></figcaption></figure>

After the successful payment, you will be able to see your plan details like this

<figure><img src="/files/YtOroKSYG7HtCsM4LfMp" alt=""><figcaption></figcaption></figure>

### Step 5: Setting up repository

You can setup your repository with the following options and you can see all the information related to your repository

<figure><img src="/files/EfrrWkpb56w8VaBtrwg9" alt=""><figcaption></figcaption></figure>

You can select the time you want your build to last from the settings

<figure><img src="/files/o55kVn3Y61zCKvz1mW9B" alt=""><figcaption></figcaption></figure>

### Step 6: Custom domains and environment variables

* You can also assign custom domain name to various branches in your repository.

<figure><img src="/files/6sCFufR6kP01yMGDm3fr" alt=""><figcaption></figcaption></figure>

You can either drag and drop the env file or manually enter it

<figure><img src="/files/EDwJOQTVvRTieAxkhb6U" alt=""><figcaption></figcaption></figure>

### Step 7: Deploy

* Go to deployments and select deploy from branch.
* Choose branch and deployment validity and click on DEPLOY.

<figure><img src="/files/AMbDJk3A9amlPuzRwkqy" alt=""><figcaption></figcaption></figure>

### Step 8: View deployed application

* Once deployment is successful, click the URL generated.
* Access your node application through the URL.

<figure><img src="/files/yLtsxGdT4sdMuh7Dp5K1" alt=""><figcaption></figcaption></figure>

* you can monitor your build and application logs along with the analytics.

<figure><img src="/files/8gqQZutJO6DcFv490HZA" alt=""><figcaption></figcaption></figure>
