Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.66 KB

in_a_nutshell.md

File metadata and controls

57 lines (41 loc) · 1.66 KB

In a Nutshell

Serinus is a minimalistic framework for building efficient and scalable server-side applications powered by Dart.

Designed to be easy to use, flexible and extensible to cover all the needs of a modern server-side application.

In a nutshell, Serinus is a framework that gets out of your way and lets you focus on building your application.

Here is the simplest example of a Serinus application:

::: code-group

import 'package:serinus/serinus.dart';

Future<void> main() async {
  final app = await serinus.createApplication(
      entrypoint: AppModule());
  await app.serve();
}
import 'package:serinus/serinus.dart';

class AppModule extends Module {
  AppModule(): super(
	controllers: [AppController()],
  );
}
import 'package:serinus/serinus.dart';

class AppController extends Controller {
  AppController(): super(path: '/') {
	on(Route.get('/'), (RequestContext context) async => 'Hello, World!');
  }
}

:::

Our Community

Serinus is a community-driven project so, if you have any questions, need help, or want to contribute to the project, feel free to join our community on Discord.

<script setup> import BtnLink from './components/btn-link.vue'; </script>