Prerequisites
- Node.js (v22 or later)
- pnpm package manager
- tsx installed in your project
- MongoDB (local instance or connection string)
- Basic knowledge of TypeScript and Node.js
Using the Example Project
The fastest way to get started with Orionjs is to use our example project. It provides a fully functioning application that demonstrates the core features and best practices.Project Structure
The example project follows the standard Orionjs structure:Running the Application
Before running the application, make sure you have MongoDB running. The example project is configured to connect tomongodb://localhost:3003/example
by default.
You can start the application in development mode using:
http://localhost:3010
.
Key Features of the Example
The example project demonstrates several key features of Orionjs:- Component-based architecture
- Configuration management
- Environment variable handling
- TypeScript integration
- Project structure best practices
Learning from the Example
We recommend exploring the example code to understand:- How components are organized and structured
- Configuration patterns for different environments
- The integration between different Orionjs modules
- How to set up and manage environment variables securely
Customizing the Example
After getting the example running, you can start customizing it:- Create your own components following the same structure
- Add or modify HTTP controllers for REST endpoints
- Implement GraphQL resolvers and models
- Set up background jobs or event-driven features with Echoes
- Configure database connections for your specific needs