flint_dart 1.0.0
flint_dart: ^1.0.0 copied to clipboard
A minimal Dart backend framework by Eulogia Technologies.
Flint Dart ๐ฅ #
Flint Dart is a minimal, expressive, and extensible server-side framework built with Dart. Inspired by the simplicity of Express.js and Laravel, Flint provides an elegant developer experience for building RESTful APIs and backend services with Dart.
Developed and maintained by Eulogia Technologies.
โจ Features #
- ๐งฑ Simple and intuitive routing
- ๐ก๏ธ Middleware support
- ๐ Built-in JWT authentication
- ๐ Secure password hashing
- โป๏ธ Hot reload support for rapid development
- ๐งช Modular structure for scalable projects
- ๐ก Clean API design inspired by Flutter's widget philosophy
๐ Getting Started #
1. Add Flint to your project #
dart pub add flint_dart
dart run
import 'package:flint_dart/flint_dart.dart';
void main() {
final app = App();
app.get('/', (req, res) async {
res.send('Welcome to Flint Dart!');
});
app.listen(3000);
}
3. Run with hot reload #
app.get('/hello', (req, res) async {
res.json({'message': 'Hello, world!'});
});
Middleware #
app.use((next) {
return (req, res) async {
print('${req.method} ${req.path}');
await next(req, res);
};
});
JWT Authentication #
final token = JwtUtil.generateToken({'userId': 123});
final payload = JwtUtil.verifyToken(token);
Password Hashing #
final hash = Hashing.hashPassword('mySecret');
final isValid = Hashing.verifyPassword('mySecret', hash);
๐ Project Structure #
lib/
โโโ flint_dart.dart
โโโ src/
โ โโโ app.dart
โ โโโ router.dart
โ โโโ request.dart
โ โโโ response.dart
โ โโโ middleware.dart
โ โโโ security/
โ โโโ jwt_util.dart
โ โโโ hashing.dart
๐ฎ Contact & Support ๐ Website: flintdart.eulogia.net
๐ง Email: eulogiatechnologies@gmail.com
๐ GitHub: github.com/eulogiatechnologies/flint_dart
๐ Contributing We welcome contributions! To get started:
git clone https://github.com/eulogiatechnologies/flint_dart.git
cd flint_dart
dart pub get
Then feel free to submit issues or pull requests.