Windus
  • Overview
  • Installation
    • Database
      • MariaDB / MySQL
      • Supabase
    • Files
      • Server Files
      • Application Files
  • User Manual
    • Projects
      • Page
  • Builder
    • Selected Element
    • Objects
    • Keyboard Shortcuts
Powered by GitBook
On this page
  1. Installation
  2. Files

Server Files

PreviousFilesNextApplication Files

Last updated 1 year ago

Windus has an API backend. In order to connect with database and other services we first need to install API backend.

First step is to copy files from /src/api folder to your Node server

Then enter corresponding values in your /src/api/env.sample file and rename env.sample file to .env

Finally run command npm install && node server.js

Deploying to Vercel

Vercel provides Node server on a free tier, you can use for your API backend.

In order to transfer files to Vercel, you can use one of the following

-

  • ZIP archive (you must compress /src/api directory and upload)

  • Github (create a github repo and import)

  • Vercel CLI ()

Though steps may vary by node server providers, below are settings for deploying to Vercel.

You can also enter your environment variables on same page, which is more convenient than .env file.

https://vercel.com/docs/cli/deploying-from-cli