Installation
This guide will walk you through installing Bejibun and creating your first application. Before you begin, ensure your system meets the minimum requirements.Requirements
Bejibun is built specifically for Bun and requires a modern development environment.Runtime Requirements
| Software | Version |
|---|---|
| Bun | Latest Stable |
| TypeScript | Included |
| Node.js | Not Required |
| Git | Recommended |
Installing Bun
Bejibun relies on Bun as its runtime, package manager, and development toolchain.Linux & macOS
Install Bun using the official installation script:Windows
Install Bun using PowerShell:Updating Bun
To update Bun to the latest version:Creating a New Application
The fastest way to start a new project is with the Bejibun CLI. Run:Navigate to the Project
Move into your newly created application:Environment Configuration
Most applications require environment-specific configuration. Bejibun stores environment variables inside the.env file.
Example:
- Databases
- Cache systems
- Storage providers
- Authentication services
- External APIs
Starting the Development Server
Once the project is created, start the development server:Development Workflow
During development, Bejibun automatically reloads when source files change.Verifying the Installation
To confirm that everything is working correctly: Create a simple route.Using the CLI
The Bejibun CLI provides generators and development utilities. Display available commands:Creating Your First Controller
Generate a controller:Creating Your First Model
Generate a model:Running Database Migrations
If your application uses a database, run migrations after configuration. Generate a migration:Production Installation
For production deployments: Install dependencies:- Reverse proxies
- HTTPS
- Environment variables
- Monitoring
- Logging
Troubleshooting
Bun Command Not Found
If you receive:Port Already in Use
If the configured port is unavailable:Dependency Installation Fails
Clear the dependency cache and reinstall:Next Steps
Congratulations! Your Bejibun environment is now ready. Continue with:- Creating Your First Application
- Project Structure
- Configuration
- Environment Variables
- Request Lifecycle
