DEV Community

Cover image for Running Full-Stack Next.js Development on Android using Termux + Acode Editor šŸ“±
Codevix
Codevix

Posted on

Running Full-Stack Next.js Development on Android using Termux + Acode Editor šŸ“±

Running Next.js on Android using Termux + Acode Editor (Full mobile development setup)

I recently experimented with running a full Next.js development environment directly on an Android phone, and surprisingly it works really well.

This setup allows you to create, run, and develop complete React and Next.js applications directly from your phone without needing a laptop.

You can build full stack applications as well. PostgreSQL works in Termux, and tools like Drizzle ORM run smoothly.

You can also use modern UI libraries like shadcn/ui and other component libraries without issues.

Personally I use this stack while developing from my phone:

Next.js
Node.js
Tailwind CSS
shadcn/ui
Drizzle ORM
Neon Postgres
NextAuth
Socket.io
and many other tools depending on the project.

SETUP GUIDE

1ļøāƒ£ Install Termux
Download Termux from F-Droid.

2ļøāƒ£ Install Acode Editor
Download Acode Editor from GitHub.
This will be used to edit the Next.js project files.

UPDATE TERMUX

pkg update && pkg upgrade

INSTALL NODEJS

pkg install nodejs-lts

INSTALL NPM

pkg install npm

INSTALL PNPM

npm install -g pnpm

CREATE A NEXT.JS PROJECT

pnpm dlx create-next-app@latest nextjs

Move into the project folder

cd nextjs

Install Tailwind + PostCSS

pnpm add tailwindcss @tailwindcss/postcss postcss

IMPORTANT NOTE

Termux currently does not support Turbopack, so you must run Next.js using webpack.

Update the scripts inside package.json

"scripts": {
"dev": "next dev --webpack",
"build": "next build --webpack",
"start": "next start"
}

This step is very important otherwise Next.js may not run properly inside Termux.

RUN THE PROJECT

pnpm dev

Then open in your browser

http://localhost:3000

Now you can build and develop Next.js apps completely from your Android phone.

REAL EXAMPLE

I actually built a complete production website template using this exact setup.

Live Demo

View Live Demo

Template

Get the Template

COMING NEXT

Within the next few days I will also release an open-source project called Termux Terminal Copilot.

It will allow developers to use AI inside Termux similar to GitHub Copilot directly in the terminal.

The entire project will be free and open source so anyone can modify and build their own AI tools.

FEEDBACK

If anyone here is also developing projects directly from mobile devices, I would love to hear your workflow.

Always curious how other developers work with lightweight setups.

Top comments (1)

Collapse
 
codevix25 profile image
Codevix

If anyone is interested, I can also share a complete mobile development workflow I use.

Tools I personally use for full-stack development on Android:

• Termux (Linux environment)
• Acode Editor
• Next.js / React
• Tailwind CSS
• shadcn/ui
• Drizzle ORM
• Neon PostgreSQL
• NextAuth
• Socket.io

Using this setup I can build full-stack apps directly from my phone.

If people are interested I can write another article explaining the complete mobile dev stack and workflow.