Student projects

Deploy a Node.js project online

Whatever you wrote it with, if it is Node.js we can run it: Express and Fastify APIs, NestJS apps, Discord and Telegram bots, workers and cron jobs, even a Next.js app with its own server. Point us at the repository and the build runs itself.

What you get.

Host Node.js apps and APIs from ₹99 a month, with a database on the same machine.

How it fits

Deploy it, step by step

The dashboard flow is the same for every project:

  1. Sign in with GitHub. Go to the dashboard and sign in. Your first sign-in puts 30 days of Nap credit in your balance, with no card and nothing to cancel.
  2. Create an application. Press New app and give it a name: three characters or more, letters, numbers and hyphens. The address is shown under the field as you type, and it is yourapp-yourlogin.dormhost.app.
  3. Pick the plan. Nap sleeps when nobody is using it. Awake never sleeps, which is what a bot, a worker or a scheduled job needs. Either way, you choose Mumbai, London or Ashburn.
  4. Point it at your repository. Paste the GitHub URL and the branch. Press Connect GitHub to pick from a list instead, which is also how a private repository is deployed. Then press Create and deploy.
  5. Watch the build log. The application opens on Overview, and Live logs streams the build. Listen on the port in the PORT variable we set, or EXPOSE one port in your Dockerfile, and the address answers as soon as the build finishes.

What is different about Node.js

  1. Keep npm start working locally: the start script in package.json is what runs here too.
  2. Listen on the port in the PORT variable we set. A hard-coded 3000 builds fine and then answers nothing.
  3. A Discord or Telegram bot has no HTTP port and must not sleep, so create it on Awake rather than Nap.
  4. Add a database in the Database section: MongoDB arrives as MONGODB_URI, PostgreSQL and MySQL as DATABASE_URL.
  5. Turn on Deploy on push from the Deploy card on Overview, add the webhook it shows you on GitHub, and every commit to the branch deploys itself.

Hosting is ₹99 a month on Nap, all in: the build, the running app, the database and the storage. Nothing is metered separately, so the bill cannot surprise you. Start with 30 days of free credit, no card required. The docs cover databases, domains and what to do when a build fails.

Deploy your Node.js app for free See the plans