Features
Docs
CLI
Benchmarks
Examples

© 2024 MoroJs

Interactive Project Builder

Configure your MoroJS project step-by-step. Select your options below and copy the generated command to get started.

Tip: Start with the template selection, then choose your runtime and database. Features and optional settings can be added as needed.

1

Choose Template

Select the type of project you want to build

2

Choose Runtime

Select where your application will run

3

Choose Database

Optional

Select your database adapter or choose none for API-only projects

4

Choose Validation Library

Optional

Select your preferred validation library for request/response validation

5

Choose WebSocket Adapter

Optional

Select WebSocket adapter for real-time features

6

Select Features

Optional

Choose additional features to include in your project

Your Command

Copy and run this command in your terminal to create your project:

Ready to Copy
morojs-cli init my-project \
  --template=api \
  --runtime=node \
  --database=postgresql \
  --features=auth,cors,docs
Replace "my-project" with your project name

API Server

Perfect for REST APIs, GraphQL servers, and backend services

Includes:

TypeScript setup
Validation middleware
API documentation
Testing framework

Quick Examples

Simple Project

Basic setup

bash

1morojs-cli init my-api

Creates a basic API project with Node.js runtime and SQLite database. Perfect for getting started quickly.

Production Setup

Enterprise configuration

bash

1morojs-cli init my-enterprise-api \
2  --template=api \
3  --runtime=vercel-edge \
4  --database=postgresql \
5  --features=auth,cors,docs

Enterprise-ready project with all features configured. Ideal for production deployments.

All Command Options

Complete syntax

bash

1morojs-cli init <project-name> [options]
2
3Options:
4  -t, --template <type>     Template (api|microservice|fullstack)
5  -r, --runtime <type>      Runtime (node|vercel-edge|aws-lambda|cloudflare-workers)
6  -d, --database <type>     Database (mysql|postgresql|sqlite|mongodb|redis|drizzle)
7  -v, --validation <lib>    Validation (zod|joi|yup|class-validator|multiple)
8  -w, --websocket <adapter> WebSocket (auto-detect|socket.io|ws|none)
9  -f, --features <list>     Features (auth,cors,helmet,compression,websocket,validation,docs)
10  --skip-git               Skip Git initialization
11  --skip-install           Skip npm install
12  --skip-setup             Skip interactive setup
13  -y, --yes                Accept all defaults
14
15Examples:
16  morojs-cli init my-api
17  morojs-cli init my-service --template=microservice --validation=joi
18  morojs-cli init my-app --runtime=vercel-edge --websocket=socket.io --validation=multiple
19  morojs-cli init enterprise --features=auth,cors,websocket,docs --validation=zod --websocket=auto-detect

After Initialization