Apps & APIs
Node.js, Bun and Python apps, APIs and workers.
32 articles
- App crashes on start: common causes and fixesYour Node.js, Bun or Python app stops right after starting on Schokr? Check these common causes, from missing files to memory and ports.
- App is running but not reachable in the browserYour Schokr app says it is listening but the browser times out or refuses the connection. Check host, port, protocol and the URL you use.
- Background workers and job queues on SchokrRun background workers on Schokr: in-process queues, a separate worker server, and external Redis or database-backed queues like BullMQ and Celery.
- Bind your app to 0.0.0.0 and the right portYour app must listen on 0.0.0.0 and the port allocated to your Schokr server. Here is how to do that in Node.js, Bun and Python.
- CORS basics for APIs hosted on SchokrFix blocked by CORS policy errors when a website calls your Schokr API. Enable CORS in Express, Fastify, Hono, Flask and FastAPI.
- Deploy an app built by an AI coding agentUsing Claude, ChatGPT, Cursor or another AI agent to build your app? Here is what to ask for so the code runs on Schokr first time.
- Environment variables and secrets for your appStore API keys, tokens and config for your Schokr app safely using Startup variables or a .env file, and keep secrets out of your code.
- Fix EADDRINUSE and "address already in use" errorsFix EADDRINUSE, EACCES and Address already in use errors on Schokr by using your allocated port and making sure only one server listens on it.
- Fix MODULE_NOT_FOUND and ModuleNotFoundErrorFix Cannot find module (MODULE_NOT_FOUND) in Node.js and Bun and ModuleNotFoundError in Python for apps running on Schokr.
- How to deploy a Bun HTTP server (Bun.serve)Run a Bun.serve web server on Schokr: set hostname 0.0.0.0, use your allocated port, upload your code and start it with the Bun template.
- How to deploy a Django app (gunicorn, ALLOWED_HOSTS, static files)Run Django in production on Schokr: gunicorn, ALLOWED_HOSTS, DEBUG off, collectstatic with WhiteNoise, migrations and SQLite.
- How to deploy a FastAPI app with uvicornRun FastAPI on Schokr with uvicorn bound to 0.0.0.0 and your allocated port, from a startup command or a Python entry file.
- How to deploy a Fastify appRun a Fastify server on Schokr. Fastify listens on localhost by default, so set host to 0.0.0.0 and use your allocated port.
- How to deploy a Flask app with gunicorn or waitressRun a Flask app in production on Schokr using gunicorn or waitress instead of the dev server, bound to 0.0.0.0 and your allocated port.
- How to deploy a Hono app on BunRun a Hono web framework app on Schokr's Bun template, with the right hostname and port so it is reachable from the internet.
- How to deploy a Next.js appBuild and run a Next.js app on Schokr with next build and next start, enough memory for the build, and the right host and port.
- How to deploy an Express appDeploy a Node.js Express app on Schokr: listen on 0.0.0.0 and your allocated port, upload your code, set the start command and go live.
- How to host a static website with a small Node serverServe a static HTML, React or Vite build on Schokr using a tiny Node.js or Bun server that listens on your allocated port.
- How to host a Telegram bot (long polling vs webhooks)Host a Telegram bot 24/7 on Schokr with python-telegram-bot, grammY or Telegraf. Why long polling is the easiest option and how webhooks differ.
- How to host a web app on SchokrRun a Node.js, Bun or Python web app on Schokr for free: pick a runtime, upload your code, set the startup command and listen on your allocated port.
- How to read your app's logs in the consoleFind out why your Schokr app is misbehaving by reading console output, making logs show up instantly, and writing logs to a file.
- How to run a TypeScript app on SchokrRun TypeScript on Schokr: compile with tsc and run the JavaScript, use tsx on Node.js, or run .ts files directly with Bun.
- How to run scheduled (cron) jobs for your appRun tasks on a timetable on Schokr using node-cron, APScheduler, or Schokr Schedules to restart your server or send commands.
- How to run WebSockets (ws, Socket.IO) on SchokrRun a WebSocket server with ws, Socket.IO, Bun or Python on Schokr by sharing your HTTP port, and connect clients with ws:// URLs.
- How to update your app without losing dataShip a new version of your app on Schokr safely: back up, replace code files in the file manager, keep your data and .env, then restart.
- How to upload your app's code with the file managerUpload your app or bot code to Schokr with the web file manager, use zip archives for speed, and know which files and folders to leave out.
- How to use your own domain for an app on SchokrPoint your own domain at an Schokr app with a DNS record and a proxy service, and how to get HTTPS since Schokr has no built-in TLS.
- Install dependencies for your app (npm, bun, pip)How to install npm, Bun and pip packages for an app on Schokr, why not to upload node_modules, and how to fix missing packages.
- Memory limits, out of memory errors and Node heap sizeFix JavaScript heap out of memory, Killed and exit code 137 on Schokr by sizing your server and tuning --max-old-space-size.
- Node.js vs Bun vs Python: which runtime to choosePick the right Schokr template for your app or bot. Compare Node.js, Bun and Python by framework support, memory use and compatibility.
- Python virtual environments on SchokrDo you need a venv for a Python app on Schokr? How package installs work on the Python template and when to create a virtual environment yourself.
- Using SQLite in production on SchokrSQLite is a solid database for apps and bots on a single Schokr server. Set up WAL mode, avoid corruption, and back up the file safely.