This N|Solid MongoDB Demo application supports Windows, macOS, and Linux platforms.
- Docker and Docker Compose installed
- N|Solid SaaS token (set as environment variable)
- Git (for cloning the repository)
| Platform | Additional Requirements |
|---|---|
| Windows | PowerShell 5.1+ or PowerShell Core 6+ |
| macOS | Bash shell (default) |
| Linux | Bash shell (default) |
# Set environment variable
$env:NSOLID_SAAS = "your_nsolid_saas_token_here"
# Run the application
npm run build:powershell# Set environment variable
set NSOLID_SAAS=your_nsolid_saas_token_here
# Run the application
npm run build:windows# Set environment variable
$env:NSOLID_SAAS = "your_nsolid_saas_token_here"
# Run cross-platform script
npm run build:cross-platform# Set environment variable
export NSOLID_SAAS="your_nsolid_saas_token_here"
# Run the application
npm run build:linux# Set environment variable
export NSOLID_SAAS="your_nsolid_saas_token_here"
# Run cross-platform script
npm run build:cross-platform| Script | Platform | Description |
|---|---|---|
npm run build:linux |
Linux/macOS | Uses bash script (build-and-run.sh) |
npm run build:windows |
Windows | Uses batch script (build-and-run.bat) |
npm run build:powershell |
Windows | Uses PowerShell script (build-and-run.ps1) |
npm run build:cross-platform |
All | Uses Node.js script (works everywhere) |
# PowerShell (Persistent)
[Environment]::SetEnvironmentVariable("NSOLID_SAAS", "your_token_here", "User")
# PowerShell (Session)
$env:NSOLID_SAAS = "your_token_here"
# Command Prompt (Session)
set NSOLID_SAAS=your_token_here# Persistent (add to ~/.bashrc or ~/.zshrc)
echo 'export NSOLID_SAAS="your_token_here"' >> ~/.bashrc
source ~/.bashrc
# Session only
export NSOLID_SAAS="your_token_here"- Windows: Docker Desktop for Windows
- macOS: Docker Desktop for Mac
- Linux: Docker Engine + Docker Compose
# Check Docker
docker --version
# Check Docker Compose
docker-compose --versionN|Solid supports the following platforms:
| Platform | Architecture | Support |
|---|---|---|
| Windows | x64 | ✅ Full Support |
| macOS | x64, ARM64 (M1/M2) | ✅ Full Support |
| Linux | x64, ARM64 | ✅ Full Support |
# If you get execution policy errors
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser# Add user to docker group
sudo usermod -aG docker $USER
# Log out and back in- Windows: Restart PowerShell/CMD after setting environment variables
- macOS/Linux: Run
source ~/.bashrcor restart terminal
- Use PowerShell for best experience
- Docker Desktop must be running
- WSL2 backend recommended for Docker Desktop
- Docker Desktop must be running
- M1/M2 Macs: Use ARM64 compatible images (handled automatically)
- Ensure Docker daemon is running:
sudo systemctl start docker - Use
sudoif not in docker group
If you encounter platform-specific issues:
- Check Docker installation and ensure it's running
- Verify environment variables are set correctly
- Try the cross-platform Node.js script (
npm run build:cross-platform) - Check the logs with
docker-compose logs -f
When everything works correctly, you should see:
✅ Application started successfully!
Access it at:
- Web Interface: http://localhost:3000
- API Documentation: http://localhost:3000/api
- Health Check: http://localhost:3000/api/health
The application will be accessible on all platforms at the same URLs.