npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

generator-nokode

v1.0.13

Published

A Yeoman generator for creating Spring Boot applications with Nokode framework

Readme

generator-nokode

npm version Build Status

A Yeoman generator for creating Spring Boot applications with the Nokode framework. This generator scaffolds a complete Spring Boot application with authentication, user management, role-based access control, and MongoDB integration.

Features

  • 🚀 Spring Boot 3.5.5 with Java 17
  • 🔐 Authentication & Authorization with role-based access control
  • 👥 User Management with CRUD operations
  • 🗄️ MongoDB Integration with Spring Data
  • 📝 OpenAPI Documentation with Swagger UI
  • 🛠️ MapStruct for object mapping
  • 🔒 Security with interceptors and CORS configuration
  • 📊 Auditing and logging capabilities
  • 🧪 Testing setup with JUnit

Prerequisites

  • Node.js (>= 14.0.0)
  • Java 17
  • Gradle
  • MongoDB

Installation

First, install Yeoman and generator-nokode using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-nokode

Usage

Interactive Mode

Run the generator in interactive mode:

yo nokode

The generator will prompt you for:

  • Application name
  • Group ID (e.g., com.example)
  • Java package name (e.g., com.example.myapp)
  • System email address

Command Line Mode

You can also provide all parameters via command line:

yo nokode --appName="MyApp" --groupId="com.example" --packageName="com.example.myapp" --systemEmailAddress="[email protected]"

Generated Project Structure

my-app/
├── src/
│   ├── main/
│   │   ├── java/
│   │   │   └── com/example/myapp/
│   │   │       ├── MyAppApplication.java
│   │   │       ├── config/
│   │   │       │   ├── AuthConfig.java
│   │   │       │   ├── MongoConfig.java
│   │   │       │   ├── WebConfig.java
│   │   │       │   └── ...
│   │   │       ├── user/
│   │   │       │   ├── domain/
│   │   │       │   ├── dto/
│   │   │       │   ├── mapper/
│   │   │       │   ├── repository/
│   │   │       │   └── service/
│   │   │       └── role/
│   │   │           ├── domain/
│   │   │           ├── dto/
│   │   │           ├── mapper/
│   │   │           ├── repository/
│   │   │           └── service/
│   │   └── resources/
│   │       └── application.properties
│   └── test/
│       └── java/
│           └── com/example/myapp/
│               └── MyAppApplicationTests.java
├── build.gradle
├── settings.gradle
└── gradlew

Configuration

After generation, update the application.properties file with your specific configuration:

# Database Configuration
spring.data.mongodb.uri=mongodb://localhost:27017/myapp

# Server Configuration
server.port=8080

# Security Configuration
app.security.jwt.secret=your-jwt-secret-key
app.security.jwt.expiration=86400000

# Email Configuration
app.email.host=smtp.gmail.com
app.email.port=587
[email protected]
app.email.password=your-app-password

Running the Application

  1. Start MongoDB:
mongod
  1. Run the application:
./gradlew bootRun
  1. Access the application:
  • API: http://localhost:8080
  • Swagger UI: http://localhost:8080/swagger-ui.html

API Endpoints

The generated application includes the following endpoints:

User Management

  • POST /api/users - Create user
  • GET /api/users - Get all users
  • GET /api/users/{id} - Get user by ID
  • PUT /api/users/{id} - Update user
  • DELETE /api/users/{id} - Delete user

Role Management

  • POST /api/roles - Create role
  • GET /api/roles - Get all roles
  • GET /api/roles/{id} - Get role by ID
  • PUT /api/roles/{id} - Update role
  • DELETE /api/roles/{id} - Delete role

Authentication

  • POST /api/auth/login - User login
  • POST /api/auth/signup - User signup
  • POST /api/auth/reset-password - Reset password

Development

Running Tests

./gradlew test

Building the Application

./gradlew build

Running with Docker

docker-compose up

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you have any questions or need help, please:

  1. Check the Issues page
  2. Create a new issue if your problem isn't already reported
  3. Contact the maintainers at [email protected]

Changelog

1.0.0

  • Initial release
  • Spring Boot 3.5.5 support
  • User and Role management
  • MongoDB integration
  • Authentication and authorization
  • OpenAPI documentation