Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.46 KB

quick_start.md

File metadata and controls

55 lines (39 loc) · 1.46 KB

Quick Start

Serinus is built on top of Dart so you need to have Dart installed on your machine. If you don't have Dart installed, you can download it from the official website.

Create a new Serinus project

We recommend using the Serinus CLI to create a new project. You can install the CLI by running the following command:

dart pub global activate serinus_cli

Once you have the CLI installed, you can create a new project by running the following command:

serinus new my_project

This will create a new Serinus project in the my_project directory with the following structure:

my_project
├── bin
│   ├── my_project.dart
├── lib
│   ├── app_controller.dart
│   ├── app_module.dart
│   ├── app_provider.dart
│   ├── app_routes.dart
│   ├── my_project.dart
├── config.yaml
├── pubspec.yaml

Once done you can navigate to the project directory:

cd my_project

And run the project:

serinus run

::: tip If you add the --dev flag to the serinus run command, the server will automatically restart when you make changes to your code. :::

This will start the Serinus server and you can access it by navigating to http://localhost:3000 in your browser.

Examples

You can find more examples in the examples directory of the Serinus repository.