Create a Module
Learn how to create custom modules for Oqtane to extend its functionality and add new features to your applications.
Overview
Creating a module in Oqtane involves several steps, including setting up the project, defining module components, implementing functionality, and testing the module in different environments.
Getting Started
To create a module for Oqtane, follow these steps:
- Use the Oqtane Administration Dashboard > Module Management
Create Module
button to scaffold a new module project. - Navigate to the project which will be located in the root folder of the Oqtane.Framework folder.
- Open the solution file in another instance of Visual Studio and build the project.
- Restart your
Oqtane.Server
Visual Studio application used to create the module. - Implement module components, including views, services, and controllers.
- Define module configuration settings and permissions.
- Test the module locally to ensure that it behaves as expected.
- Package the module for distribution and installation on other Oqtane sites.
Development Process
The module development process typically involves:
- Project setup and configuration
- Component implementation and integration
- Testing and debugging
- Documentation and packaging
Best Practices
- Follow the Oqtane module development guidelines and coding standards.
- Use dependency injection for managing dependencies and promoting modularity.
- Utilize Oqtane services and APIs for interacting with the platform and accessing data.
- Test your module in different environments to ensure compatibility and stability.
Main Author
Cody, @thabaum
[Oqtane Core Team]
Passionate about Oqtane!
Github: @thabaum