Revali Server
Revali Server is a "Server Construct" that generates server-side code for Revali applications. It provides a way to define routes, middleware, and other server-side logic in a type-safe way. Inspired by NestJS, Revali Server uses annotations to define routes, middleware, guards and other server-side logic.
Example
import 'package:revali_router/revali_router.dart';
@Controller('hello')
class HelloController {
const HelloController();
@Get()
String hello() {
return 'Hello, World!';
}
}
Documentation
Check out the documentation for more information on how to use Revali Server.
Libraries
- build
- cli/commands/create/create_command
- cli/commands/create/create_components/create_a_component_command
- cli/commands/create/create_components/create_app_command
- cli/commands/create/create_components/create_controller_command
- cli/commands/create/create_components/create_lifecycle_component_command
- cli/commands/create/create_components/create_observer_command
- cli/commands/create/create_components/create_pipe_command
- cli/commands/create/mixins/create_command_mixin
- cli/models/cli_config
- cli/models/create_paths
- cli/revali_server_runner
- converters/annotation_mimics
- converters/annotation_type_references
- converters/base_annotations
- converters/base_parameter_annotation
- converters/has_pipe
- converters/server_allow_headers
- converters/server_allow_origins
- converters/server_app
- converters/server_app_annotation
- converters/server_app_observers
- converters/server_bind
- converters/server_binds_annotation
- converters/server_body_annotation
- converters/server_child_route
- converters/server_class
- converters/server_expect_headers
- converters/server_from_json
- converters/server_generic_type
- converters/server_header_annotation
- converters/server_imports
- converters/server_lifecycle_component
- converters/server_lifecycle_component_method
- converters/server_mimic
- converters/server_param
- converters/server_param_annotation
- converters/server_param_annotations
- converters/server_parent_route
- converters/server_pipe
- converters/server_public
- converters/server_query_annotation
- converters/server_record_prop
- converters/server_reflect
- converters/server_route
- converters/server_route_annotations
- converters/server_server
- converters/server_set_header
- converters/server_status_code
- converters/server_to_json
- converters/server_type
- converters/server_type_reference
- converters/simple_parameter_annotation
- makers/creators/convert_to_json
- makers/creators/create_app
- makers/creators/create_arg_for_param
- makers/creators/create_arg_from_binds
- makers/creators/create_arg_from_custom_param
- makers/creators/create_bind_context
- makers/creators/create_body_var
- makers/creators/create_child_route
- makers/creators/create_class
- makers/creators/create_constructor_parameters
- makers/creators/create_data_var
- makers/creators/create_dependency_injection
- makers/creators/create_fields
- makers/creators/create_from_json
- makers/creators/create_from_json_arg
- makers/creators/create_generics
- makers/creators/create_get_from_di
- makers/creators/create_handler
- makers/creators/create_header_var
- makers/creators/create_mimic
- makers/creators/create_missing_argument_exception
- makers/creators/create_modifier_args
- makers/creators/create_param_arg
- makers/creators/create_param_var
- makers/creators/create_pipe
- makers/creators/create_quer_var
- makers/creators/create_reflect
- makers/creators/create_route_args
- makers/creators/create_routes_variable
- makers/creators/create_web_socket_handler
- makers/creators/get_raw_type
- makers/creators/should_nest_json_in_data
- makers/part_files/lifecycle_components/exception_content
- makers/part_files/lifecycle_components/guard_content
- makers/part_files/lifecycle_components/interceptor_content
- makers/part_files/lifecycle_components/middleware_content
- makers/part_files/lifecycle_components/utils/create_component_methods
- makers/part_files/lifecycle_components_files_maker
- makers/part_files/public_file_maker
- makers/part_files/reflects_file_maker
- makers/part_files/route_file_maker
- makers/part_files/routes_file_maker
- makers/server_file_maker
- makers/utils/binary_expression_extensions
- makers/utils/create_switch_pattern
- makers/utils/create_throw_missing_argument
- makers/utils/for_in_loop
- makers/utils/get_params
- makers/utils/if_statement
- makers/utils/meta_method_extensions
- makers/utils/meta_route_extensions
- makers/utils/try_catch
- makers/utils/type_extensions
- models/options
- revali_build.construct
- revali_server
- revali_server.construct
- server
- utils/annotation_argument
- utils/annotation_arguments
- utils/create_map
- utils/data_annotation
- utils/extract_import
- utils/safe_property