YouBothAgent▾
You — Business rules and flows you own. Read these yourself.
Both — Know the idea; your agent follows the details.
Agent — Conventions and references your agent follows. Look up as needed.
Introduction▾
Tutorials▾
System Architecture▾
Module Convention▾
Scalar Convention▾
Quick Start
Akan.js is a full-stack TypeScript framework that prioritizes designing and implementing actual business code.
To achieve this, technical parts are abstracted as much as possible so that developers do not need to implement them directly.
You can build a type-safe service with minimal code and deploy it to web, mobile, server, and DB infrastructure at the same time.
Installation
Akan.js can be installed with a simple command. Before installation, there's a few requirements.
System Requirements:
Node.js 20.x or higher
pnpm 10.x or higher
Docker
Android Studio (if you want to use Android)
Xcode (if you want to use iOS)
Create a new project
First, create a new project using the Akan.js CLI. To create a project, run the following command:
Terminal
When you enter it, the following prompt will be displayed:
Terminal
Run the development environment
Terminal
Execution
Now, you can get Nextjs client, React client, and Nestjs Server.
Client control
You can edit page with Next.js App Router interface. For example, you can edit the default page(/) as follows.
You can edit the default template to write Hello Akan.js as follows.
apps/<my-app>/app/[lang]/page.tsx
Next.js page is available at http://localhost:4200 and it works with server-side rendering, which is optimized for web-based operations.
React page is available at http://localhost:4201 and it works with client-side rendering, which is optimized for mobile app-based operations.
http://localhost:4200
Hello Akan.js! 🎉
Hello Akan.js! 🎉
Server control
You can edit the main.ts to log Hello Akan.js as follows. It is the entry point file for the Node.js server.
apps/<my-app>/main.ts
Nest.js server is running at http://localhost:8080. You can see the log in the terminal.
Terminal