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! π»β¨
