0.0.15 β’ Published 6 months ago
@nathius262/nexusjs v0.0.15
π NexusJS

A lightweight Express.js framework with Sequelize, automatic module generation, authentication, and a CLI for easy development.
β¨ Features
- β‘ Express.js + Sequelize integration
- βοΈ Automatic module generation via CLI
- π Built-in authentication (JWT)
- π¦ Lightweight & modular structure
π₯ Installation
Install using NPM:
npm i @nathius262/nexusjsπ CLI Commands
ποΈ Project Scaffolding
| Command | Description |
|---|---|
npx nexus create-project <name> | Creates new project |
npx nexus init <name> | Alias for create-project |
π§© Module Generation
| Command | Description |
|---|---|
npx nexus make-module <name> [flags] | Generate complete module |
npx nexus make-controller <name> [--admin --api] | Generate controller |
npx nexus make-service <name> [--admin --api] | Generate service |
npx nexus make-router <name> [--admin --api] | Generate router |
npx nexus make-model <name> | Generate model + migration |
π οΈ Generation Flags
| Flag | Description |
|---|---|
-m | Generate model and migration |
-c | Generate controller |
-r | Generate router |
-s | Generate service |
--admin | Generate admin version |
--api | Generate API version |
π Usage Examples
Create a new project
npx nexus create-project ecommerce-appGenerate a complete product module with all components (admin + API)
npx nexus make-module product -mcrs --api --adminGenerate only API components of user module
npx nexus make-module user -crs --apiGenerate only an admin controller for payment
npx nexus make-controller payment --adminπ§ Create a Full Module
nexus make-module <moduleName> -mcrsπ οΈ Options
| Flag | Description |
|---|---|
-m | Generate model and migration |
-c | Generate controller |
-r | Generate router |
-s | Generate service |
--admin | Generate admin version (CRS) |
--api | Generate api version (CR) |
π Output Structure
src/
βββ config/
βββ middlewares/
βββ core/
βββ controllers/
βββ models/
βββ views/
βββ modules/
β βββ product/
β βββ controllers/
β β βββ api/
β β β βββ product.controller.js
β β β βββ admin.product.controller.js
β β βββ product.controller.js
β β βββ admin.product.controller.js
β βββ routes/
β β βββ api/
β β β βββ product.routes.js
β β βββ admin.product.routes.js
β β βββ product.routes.js
β βββ services/
β β βββ product.service.js
β β βββ admin.product.service.js
β βββ migrations/
β β
β βββ models/
β βββ product.model.js
βββ utils/
βββ index.jsπ οΈ Contributing
We welcome contributions! Follow these steps to get started:
1οΈβ£ Fork the repository
Click the "Fork" button at the top-right of this repo.
2οΈβ£ Clone your fork
git clone https://github.com/Nathius262/nexusjs.git
cd nexusjs3οΈβ£ Create a new branch
git checkout -b feature/your-feature4οΈβ£ Make changes & commit
git add .
git commit -m "Added feature XYZ"5οΈβ£ Push changes & create a Pull Request
git push origin feature/your-featureThen go to GitHub and submit a Pull Request (PR) π
π License
This project is licensed under the MIT License.
MIT License
Β© 2025 Nathaniel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction...β€οΈ Support & Feedback
β Star this project on GitHub if you find it useful!
For questions, open an Issue or create a Pull Request.
π Letβs Build Together!
Happy coding! π»β¨