Getting Started with Nimman
A quick start guide to get your application deployed in minutes.
Prerequisites Checklist
Before you begin, ensure you have:
- Node.js 16+ or Bun installed
- A Linux server (Ubuntu/Debian or CentOS/RHEL)
- Root/sudo access on the server
- Domain name pointing to your server's IP address (for SSL)
- Your application code ready to deploy
Installation
1. Install Nimman
npm install -g nimman2. Install Server Dependencies
On your server, install required tools:
# Nginx
sudo apt-get update
sudo apt-get install nginx
# Certbot (for SSL)
sudo apt-get install certbot python3-certbot-nginx
# PM2
npm install -g pm2Quick Start (3 Steps)
Step 1: Initialize Configuration
In your project directory:
nimman initFollow the interactive prompts. This creates nimman.yml.
Step 2: Setup Server (First Time Only)
sudo nimman setupThis configures Nginx and SSL certificates.
Step 3: Deploy
nimman deployYour application is now live! 🎉
What Happens During Setup?
nimman init
- Creates
nimman.ymlconfiguration file - Asks about your project structure
- Configures frontend/backend services
sudo nimman setup
- Generates Nginx reverse proxy configuration
- Obtains SSL certificates from Let's Encrypt
- Configures automatic certificate renewal
- Enables HTTPS
nimman deploy
- Builds your services
- Creates PM2 ecosystem configuration
- Deploys with zero-downtime reload
- Ensures all services are running
Verify Deployment
# Check PM2 status
pm2 status
# View logs
pm2 logs
# Visit your domain
curl https://yourdomain.comNext Steps
- Read the Full Documentation for detailed information
- Check Examples for configuration samples
- Review Troubleshooting if you encounter issues
Common First-Time Issues
"Nginx not found"
sudo apt-get install nginx"Certbot not found"
sudo apt-get install certbot python3-certbot-nginx"PM2 not found"
npm install -g pm2SSL setup fails
- Ensure domain points to server IP
- Check ports 80/443 are open:
sudo ufw allow 80 && sudo ufw allow 443
Need Help?
See the Full Documentation or check the Troubleshooting Guide.