Skip to content

A modern fullstack JavaScript framework combining React with microservices architecture

License

Notifications You must be signed in to change notification settings

rahmanazhar/StellarJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StellarJS Framework

⭐ StellarJS

A modern fullstack JavaScript framework combining React with microservices architecture

License npm version GitHub Stars

✨ Features

  • 🚀 Integrated Frontend & Backend: Seamlessly combine React frontend with Express-based microservices
  • ⚡️ Built-in Authentication: Ready-to-use authentication service with JWT support
  • 🎯 TypeScript Support: First-class TypeScript support out of the box
  • 🔄 Custom Hooks: Powerful hooks for service integration and state management
  • 🛠 CLI Tools: Efficient development workflow with project scaffolding and code generation
  • 📦 Microservices Architecture: Built-in support for microservices development
  • 🔒 Security: Built-in security features and middleware
  • 🎨 Customizable: Flexible configuration and extensible architecture

🚀 Quick Start

# Create a new StellarJS project
npx stellar-js create my-app

# Navigate to project directory
cd my-app

# Start development server
npm run dev

Visit http://localhost:3001 to see your app in action!

📚 Documentation

For detailed documentation, visit our Documentation Site:

🌟 Example Usage

Service Definition

// Define your service
class UserService {
  async getUsers() {
    return [
      { id: 1, name: 'John Doe' },
      { id: 2, name: 'Jane Smith' }
    ];
  }
}

React Component

// Use in components
function UserList() {
  const { data, loading } = useService('user', 'getUsers');
  
  if (loading) return <div>Loading...</div>;
  
  return (
    <ul>
      {data.map(user => (
        <li key={user.id}>{user.name}</li>
      ))}
    </ul>
  );
}

🛠 CLI Commands

# Create new project
stellar create my-app

# Generate components/services
stellar generate component UserList
stellar generate service User

# Development
stellar dev

# Production build
stellar build

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

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

💬 Community

📝 License

Copyright © 2023 Rahman Azhar. This project is MIT licensed.

About

A modern fullstack JavaScript framework combining React with microservices architecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published