This repository provides a quick way to create a free public NodeJS backend on Deta for Lametric Time application development.
Deta greatly satisfies Lametric developers' needs providing a free-forever cloud for NodeJS and Python micro servers with built-in persistence layer and 10GB filesystem.
-
Create an account on Deta and install Deta CLI on your machine.
-
Click the "Deploy to Deta" button below to deploy this templated server on free Deta cloud.
-
Once deployed, run
deta clone --name <your deployed micro name> --project <your project name>
to clone sources to your machine. -
Create a new Lametric Time indicator app and pass a URL of your Deta micro appended with
/poll
suffix.
For example, if your Deta URL is https://qqq.deta.dev/
, set URL as https://qqq.deta.dev/poll
in "URL to get data from" field.
Please read more about how to create Lametric Time apps here.
Once you've edited sources and would like to deploy it to Deta, just run deta deploy
from the project's directory.
- Obtain your Deta project key from Deta dashboard and pass it to the
DETA_PROJECT_KEY
environment variable. - Run
npm i
andnode index.js
to download dependencies and start server on local port8000
. - Install Ngrok and run
ngrok http 8000
to create a public URL for your local server. - Pass public URL to Lametric Time app settings ending with
/poll
for polling URL and/button
for button action.
This enables to receive HTTP requests from your Lametric app and debug it during the development process.