2024-10-12 10:35:14 +00:00
# Protevus Framework
2021-06-22 08:17:15 +00:00
2024-10-13 01:45:27 +00:00
[![Protevus Framework ](../../protevus_logo.png )](https://github.com/dart-backend/protevus)
2023-10-18 14:21:24 +00:00
2024-10-13 01:45:27 +00:00
![Pub Version (including pre-releases) ](https://img.shields.io/pub/v/protevus_framework?include_prereleases )
2021-05-14 10:34:09 +00:00
[![Null Safety ](https://img.shields.io/badge/null-safety-brightgreen )](https://dart.dev/null-safety)
2024-07-07 15:02:49 +00:00
[![Discord ](https://img.shields.io/discord/1060322353214660698 )](https://discord.gg/3X6bxTUdCM)
2024-10-12 10:35:14 +00:00
[![License ](https://img.shields.io/github/license/dart-backend/protevus )](https://github.com/dart-backend/protevus/tree/master/packages/framework/LICENSE)
2022-03-20 00:55:30 +00:00
[![melos ](https://img.shields.io/badge/maintained%20with-melos-f700ff.svg?style=flat-square )](https://github.com/invertase/melos)
2016-06-21 22:56:04 +00:00
2024-10-12 10:35:14 +00:00
Protevus framework is a high-powered HTTP server with support for dependency injection, sophisticated routing, authentication, ORM, graphql etc. It is designed to keep the core minimal but extensible through a series of plugin packages. It won't dictate which features, databases or web templating engine to use. This flexibility enable Protevus framework to grow with your application as new features can be added to handle the new use cases.
2021-08-20 05:46:02 +00:00
2024-10-12 10:41:18 +00:00
This package is the core package of [Protevus ](https://github.com/dart-backend/protevus ). For more information, visit us at [Protevus Website ](https://protevus-framework.web.app ).
2021-08-20 05:46:02 +00:00
2021-08-20 05:55:04 +00:00
## Installation and Setup
2021-08-20 05:46:02 +00:00
2021-08-20 05:55:04 +00:00
### (Option 1) Create a new project by cloning from boilerplate templates
2021-08-20 05:46:02 +00:00
1. Download and install [Dart ](https://dart.dev/get-dart )
2. Clone one of the following starter projects:
2024-10-12 10:41:18 +00:00
* [Protevus Basic Template ](https://github.com/dukefirehawk/boilerplates/tree/v7/protevus-basic )
* [Protevus ORM Template ](https://github.com/dukefirehawk/boilerplates/tree/v7/protevus-orm )
* [Protevus ORM MySQL Template ](https://github.com/dukefirehawk/boilerplates/tree/v7/protevus-orm-mysql )
* [Protevus Graphql Template ](https://github.com/dukefirehawk/boilerplates/tree/v7/protevus-graphql )
2021-08-20 05:46:02 +00:00
3. Run the project in development mode (*hot-reloaded* is enabled on file changes).
```bash
dart --observe bin/dev.dart
```
4. Run the project in production mode (*hot-reloaded* is disabled).
```bash
dart bin/prod.dart
```
5. Run as docker. Edit and build the image with the provided `Dockerfile` file.
2024-10-12 10:35:14 +00:00
### (Option 2) Create a new project with Protevus CLI
2021-08-20 05:46:02 +00:00
1. Download and install [Dart ](https://dart.dev/get-dart )
2024-10-13 01:45:27 +00:00
2. Install the [Protevus CLI ](https://pub.dev/packages/protevus_cli ):
2021-08-20 05:46:02 +00:00
```bash
2024-10-13 01:45:27 +00:00
dart pub global activate protevus_cli
2021-08-20 05:46:02 +00:00
```
3. On terminal, create a new project:
```bash
2024-10-12 10:41:18 +00:00
protevus init hello
2021-08-20 05:46:02 +00:00
```
4. Run the project in development mode (*hot-reloaded* is enabled on file changes).
```bash
dart --observe bin/dev.dart
```
5. Run the project in production mode (*hot-reloaded* is disabled).
```bash
dart bin/prod.dart
```
6. Run as docker. Edit and build the image with the provided `Dockerfile` file.
2022-10-03 15:31:46 +00:00
## Performance Benchmark
The performance benchmark can be found at
[TechEmpower Framework Benchmarks Round 21 ](https://www.techempower.com/benchmarks/#section=data-r21&test=composite )
2024-10-12 10:39:20 +00:00
### Migrating from Protevus to Protevus
2021-08-20 05:46:02 +00:00
2024-10-12 10:41:18 +00:00
Check out [Migrating to Protevus ](https://protevus-docs.dukefirehawk.com/migration/protevus-2.x.x-to-protevus/migration-guide-3 )
2022-09-18 16:58:28 +00:00
## Donation & Support
2024-02-12 05:03:40 +00:00
If you like this project and interested in supporting its development, you can make a donation using the following services:
* [![GitHub ](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86 )](https://github.com/sponsors/dukefirehawk)
* [paypal ](https://paypal.me/dukefirehawk?country.x=MY&locale.x=en_US ) service