13 lines
384 B
Dart
13 lines
384 B
Dart
|
|
import 'package:serverpod/serverpod.dart';
|
||
|
|
|
||
|
|
import 'src/generated/endpoints.dart';
|
||
|
|
import 'src/generated/protocol.dart';
|
||
|
|
|
||
|
|
/// The starting point of the Serverpod server.
|
||
|
|
Future<void> run(List<String> args) async {
|
||
|
|
// Initialize Serverpod and connect it with your generated code.
|
||
|
|
final pod = Serverpod(args, Protocol(), Endpoints());
|
||
|
|
|
||
|
|
// Start the server.
|
||
|
|
await pod.start();
|
||
|
|
}
|