A lightweight Express.js framework with Sequelize, automatic module generation, authentication, and a CLI for easy development.
- ⚡ Express.js + Sequelize integration
- ⚙️ Automatic module generation via CLI
- 🔑 Built-in authentication (JWT)
- 📦 Lightweight & modular structure
Install using NPM:
npm i @nathius262/nexusjs| Command | Description |
|---|---|
npx nexus create-project <name> |
Creates new project |
npx nexus init <name> |
Alias for create-project |
| 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 |
| Flag | Description |
|---|---|
-m |
Generate model and migration |
-c |
Generate controller |
-r |
Generate router |
-s |
Generate service |
--admin |
Generate admin version |
--api |
Generate API version |
npx nexus create-project ecommerce-appnpx nexus make-module product -mcrs --api --adminnpx nexus make-module user -crs --apinpx nexus make-controller payment --adminnexus make-module <moduleName> -mcrs| 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) |
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
We welcome contributions! Follow these steps to get started:
Click the "Fork" button at the top-right of this repo.
git clone https://github.com/Nathius262/nexusjs.git
cd nexusjsgit checkout -b feature/your-featuregit add .
git commit -m "Added feature XYZ"git push origin feature/your-featureThen go to GitHub and submit a Pull Request (PR) 🚀
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...⭐ Star this project on GitHub if you find it useful!
For questions, open an Issue or create a Pull Request.
Happy coding! 💻✨
