Getting started
How to get started with Jeasx
It's easy to get started. Just use the following commands to set up and start your first project:
npm create jeasx@latest
cd jeasx-quickstart
npm run dev
Hot reloading is enabled in development mode, allowing modified files to be automatically recompiled.
To run your project in production mode, you'll need to perform a build to export required metadata before starting the server:
export NODE_ENV=production
npm run build
npm start
Jeasx doesn't set NODE_ENV=production for you, so set it yourself for both the build and the server (see environment variables).
The build writes a manifest of all routes and files to dist/.jeasx.manifest.js. Since its name starts with a dot, make sure your deployment doesn't skip dotfiles (e.g. copy/rsync globs, upload tools or .dockerignore patterns), otherwise the production server won't start.
You can create a new project with a specific name by providing an additional argument:
npm create jeasx@latest my-awesome-project
If your project is successfully started, just visit http://localhost:3000/ in a browser of your choice. The dev server only listens on localhost. If you develop in a container or VM, start it with HOST=:: npm run dev.
You can visit a deployed version of the quickstart template at https://quickstart.jeasx.dev. The contents of the quickstart template can be found at GitHub.
The best way to get to know Jeasx is by exploring the Expo, which showcases numerous examples using a variety of technologies. You can also easily clone the GitHub repository to experiment with the examples directly on your computer.
Jeasx is developed and tested extensively with the latest LTS version of Node.js. Older versions are not supported, though they may work. Some examples in this documentation need Node.js 22 or newer (e.g. Array.fromAsync).
Bun
Since Jeasx 3.1, Bun is supported as a first-class runtime. When Jeasx runs on Bun, it bundles with Bun's native bundler (Bun.build) instead of esbuild, so Bun can both build and run your project without a separate bundler.
The jeasx command runs on Node by default. To run it on Bun, pass the --bun flag (or its shortcut -b):
bun --bun run dev
bun --bun run build
bun --bun run start
To use Bun without the flag (e.g. bun run dev), add a bunfig.toml to your project:
[run]
bun = true
Bun and esbuild produce the same dist layout, so you can mix and match: build with Bun and run on Node, or build with esbuild and run on Bun. jeasx dev and jeasx build print which bundler and version they use. To customize Bun's bundler, see BUN_SERVER_OPTIONS and BUN_BROWSER_OPTIONS.
To see Jeasx on Bun in action, visit https://bun.jeasx.dev, a deployment of the Expo running on Bun.
Create a project with Docker support
If you want to use Docker, you can bootstrap a new project with additional resources (Dockerfile, .dockerignore) via the following flag:
npm create jeasx@latest -- --with-docker
Create a project with Vercel support
If you are going to deploy your project on Vercel, you can bootstrap a project with additional resources (vercel.json, api/vercel.js) via the following flag:
npm create jeasx@latest -- --with-vercel
For the initial setup of a Jeasx project on Vercel, you should select Other as the Application Preset.