
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
nx-starter
Advanced tools
A modern, feature-rich starter template for building scalable web applications with Node.js, Express, MySQL, and Socket.io. This template provides a solid foundation for developing web applications using the MVC architecture pattern.
You can get started with Node Express Starter 2.0 in two ways:
npx nx-starter my-project
cd my-project
This will create a new project in the my-project directory with all dependencies installed.
git clone https://github.com/khokonm/node-express-starter-2.0.git
cd node-express-starter-2.0
npm install
cp .env.example .env
# Edit .env with your configuration
npm run dev
npm start
├── controllers/ # Route controllers (handle incoming requests)
│ ├── api/ # API controllers for REST endpoints
│ ├── auth/ # Authentication controllers
│ └── views/ # View controllers for server-side rendering
├── events/ # Event handlers for Socket.io and system events
├── libs/ # Library functions and shared business logic
├── middleware/ # Express middleware (auth, validation, etc.)
├── models/ # Database models and schemas
├── routes/ # Application routes and API endpoints
├── services/ # Business logic and external service integration
├── utils/ # Utility functions and helpers
├── validations/ # Request validators and schemas
├── views/ # EJS templates and static assets
├── app.js # Express app setup and configuration
└── server.js # Server entry point and Socket.io setup
Create a .env file in the root directory with the following variables:
# Server Configuration
PORT=3000
NODE_ENV=development
# Database Configuration
DB_HOST=localhost
DB_USER=root
DB_PASS=
DB_NAME=your_database
DB_PORT=3306
# Authentication
JWT_SECRET=your_jwt_secret
JWT_EXPIRES_IN=7d
# Session Configuration
SESSION_SECRET=your_session_secret
SESSION_EXPIRES=24h
# Mail Configuration (Optional)
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USER=your_email@example.com
MAIL_PASS=your_email_password
# OAuth Configuration (Optional)
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
Detailed API documentation is available at /api-playground when running the development server. The documentation includes:
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the ISC License - see the LICENSE file for details.
Khokon M. (khokon.dev)
For support and questions, please use the GitHub Issues page.
FAQs
A simple MVC starter template with node, express, sequelize and socket.io
The npm package nx-starter receives a total of 0 weekly downloads. As such, nx-starter popularity was classified as not popular.
We found that nx-starter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.