MCPcopy Index your code
hub / github.com/NativeScript/sample-Groceries

github.com/NativeScript/sample-Groceries @v2.5.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.5.0 ↗ · + Follow
82 symbols 159 edges 32 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Groceries Build Status

Groceries is a NativeScript-built iOS and Android app for managing grocery lists. You can learn how to build a version of this app from scratch using either our JavaScript getting started guide, or our TypeScript and Angular getting started guide.

Branches

This repository contains a number of branches:

  • The master branch shows how to build a robust, real-world app using NativeScript. The branch is built with TypeScript and Angular.



Screenshots

Development

This app is built with the NativeScript CLI. Once you have the CLI installed, start by cloning the repo:

$ git clone https://github.com/NativeScript/sample-Groceries.git
$ cd sample-Groceries

From there you can use the run command to run Groceries on iOS:

$ tns run ios

And the same command to run Groceries on Android:

$ tns run android

Linting

Groceries uses tslint + codelyzer rules to ensure the code follows the angular style guide.

You can run the linter with the tslint npm script:

$ npm run tslint

Unit Testing

Groceries uses NativeScript’s integrated unit test runner with Jasmine. To run the tests for yourself use the tns test command:

$ tns test ios --emulator
$ tns test android --emulator

For more information on unit testing NativeScript apps, refer to the NativeScript docs on the topic.

Travis CI

Groceries uses Travis CI to verify all tests pass on each commit. Refer to the .travis.yml configuration file for details.

Telerik Platform

If you’d like to try developing Groceries without going through the full setup, you may be interested in loading the app in the Telerik Platform:

Contributors

The following is a list of all the people that have helped build Groceries. Thanks for your contributions!

tjvantollhdeshevvakrilovMitko-Kerezovjlooperrosen-vladimirov

SvetoslavTsenovligazsis0k0wdulindtopuzovnadyaA

vchimevcovex-nnbundyoEddyVerbruggenNathanWalkernsndeck

tzraikovTsvetanMilanovbradmartincmelo

Core symbols most depended-on inside this repo

alert
called by 15
app/shared/dialog-util.ts
isValidEmail
called by 6
app/shared/user.model.ts
publishUpdates
called by 6
app/groceries/shared/grocery.service.ts
getHeaders
called by 5
app/groceries/shared/grocery.service.ts
hideActivityIndicator
called by 4
app/groceries/groceries.component.ts
put
called by 3
app/groceries/shared/grocery.service.ts
showActivityIndicator
called by 2
app/groceries/groceries.component.ts
isLoggedIn
called by 1
app/shared/backend.service.ts

Shape

Method 52
Class 28
Function 2

Languages

TypeScript100%

Modules by API surface

app/groceries/shared/grocery.service.ts13 symbols
app/login/login.component.ts12 symbols
app/groceries/groceries.component.ts12 symbols
app/groceries/grocery-list/grocery-list.component.ts10 symbols
app/shared/login.service.ts8 symbols
app/shared/backend.service.ts4 symbols
app/auth-guard.service.ts4 symbols
app/shared/user.model.ts3 symbols
app/groceries/shared/grocery.model.ts3 symbols
app/groceries/grocery-list/item-status.pipe.ts3 symbols
app/login/login.module.ts2 symbols
app/groceries/groceries.module.ts2 symbols

For agents

$ claude mcp add sample-Groceries \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact