dartion 0.0.3 copy "dartion: ^0.0.3" to clipboard
dartion: ^0.0.3 copied to clipboard

outdated

Dartion is a RESTful mini web server based on JSON. Up your backend in 5 Seconds!

Dartion #

Dartion is a RESTful mini web server based on JSON. This is not just a port of the popular json-server for dart as it adds other features like JWT authentication.

Goal #

Upload a backend in 5 seconds! This will make it easier for those who take front-end video classes like Flutter and need a ready server. From here, just populate the json file and you will have a simple and ready to use database.

Instalation #

  1. First of all you need install the Dart:

https://dart.dev/get-dart

  1. Activate the slidy using the pub:
 pub global activate dartion

Commands #

Upgrade:

Updates dartion's version:

dartion upgrade

Init server:

Exec this command in empty folder.

dartion init

This will create some configuration files for the quick operation of the server.

Start server:

This command will boot the server based on the settings in config.yaml.

dartion serve

Route system #

Just when running Dartion, we already have a structure based on RESTful while the data persists in a .json file in the folder.

GET    /products     -> get all Products
GET    /products/1   -> get one product
POST   /products     -> add more one product
PUT    /products/1   -> edit one product
PATCH  /products/1   -> edit one product
DELETE /products/1   -> delete one product

POST, PUT and PATH requests must have ** body ** as json. It is not necessary to pass the ID, it is always auto incremented

For more details join our Telegram Group Flutterando

72
likes
0
pub points
49%
popularity

Publisher

verified publisherflutterando.com.br

Dartion is a RESTful mini web server based on JSON. Up your backend in 5 Seconds!

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

jaguar_jwt, yaml

More

Packages that depend on dartion