jaguar_example_session 2.4.1

  • Readme
  • Changelog
  • Installing
  • 46

session_vanilla #

Example showcasing simplicity of using Sessions in Jaguar

Explanation #

This project implements a sample shopping cart application that stores the items in the shopping cart as session data.

The HTML page at route http://localhost:10000/ provides a GUI to interactively add and remove items to the cart.

The API route /api/add/:phone adds an item to the cart, while the API route /api/remove/:phone removes the item from the cart.

Changelog #

0.0.1 #

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  jaguar_example_session: ^2.4.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
82
Overall:
Weighted score of the above. [more]
46
Learn more about scoring.

We analyzed this package on Nov 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Health suggestions

Fix bin/view.dart. (-1.49 points)

Analysis of bin/view.dart reported 3 hints:

line 4 col 23: Use = to separate a named parameter from its default value.

line 4 col 46: Use = to separate a named parameter from its default value.

line 4 col 69: Use = to separate a named parameter from its default value.

Fix bin/main.dart. (-0.50 points)

Analysis of bin/main.dart reported 1 hint:

line 5 col 18: Unnecessary new keyword.

Maintenance suggestions

Package is getting outdated. (-15.89 points)

The package was last published 60 weeks ago.

The package description is too short. (-2 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
jaguar ^2.4.4 2.4.36
stencil ^2.1.5 2.1.6
Transitive dependencies
auth_header 2.1.4
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
http_server 0.9.8+3
jaguar_common 2.1.4
jaguar_serializer 2.2.12
logging 0.11.3+2
meta 1.1.8
mime 0.9.6+3
path 1.6.4
path_tree 2.2.2
stack_trace 1.9.3
typed_data 1.1.6