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.
Copy
# Clone the entire Orionjs repositorygit clone https://github.com/orionjs/orionjs-services-starter# Navigate to the example directorycd orionjs-services-starter# Install dependenciespnpm install
Before running the application, make sure you have MongoDB running. The example project is configured to connect to mongodb://localhost:3003/example by default.You can start the application in development mode using:
Copy
# Using the provided start script./start.sh# Or manuallyexport ORION_ENV_SECRET_KEY=pk+uJ3wTEZxuDWKF6zdeypUzQQNkKE3i+bnfHe6g+RU=export ORION_ENV_FILE_PATH=.env.local.ymlexport PORT=3010pnpm orion dev
The application will start, and you can access it at http://localhost:3010.