Server Files
Last updated
Last updated
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
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.