https://github.com/nativescript/sample-groceries
:green_apple: :pineapple: :strawberry: A NativeScript-built iOS and Android app for managing grocery lists
https://github.com/nativescript/sample-groceries
Last synced: 8 months ago
JSON representation
:green_apple: :pineapple: :strawberry: A NativeScript-built iOS and Android app for managing grocery lists
- Host: GitHub
- URL: https://github.com/nativescript/sample-groceries
- Owner: NativeScript
- License: apache-2.0
- Created: 2015-08-06T18:38:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T11:43:14.000Z (about 6 years ago)
- Last Synced: 2024-10-29T16:58:23.154Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 117 MB
- Stars: 485
- Watchers: 70
- Forks: 345
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Groceries [](https://travis-ci.org/NativeScript/sample-Groceries)
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](http://docs.nativescript.org/tutorial/chapter-0), or our [TypeScript and Angular getting started guide](http://docs.nativescript.org/angular/tutorial/ng-chapter-0).
* [Screenshots](#screenshots)
* [Development](#development)
* [Linting](#linting)
* [Unit testing](#unit-testing)
* [Travis CI](#travis)
* [Contributors](#contributors)
Screenshots






Development
This app is built with the NativeScript CLI. Once you have the [CLI installed](https://docs.nativescript.org/start/quick-setup), 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](https://www.npmjs.com/package/tslint) + [codelyzer](https://github.com/mgechev/codelyzer) rules to ensure the code follows the [angular style guide](https://angular.io/docs/ts/latest/guide/style-guide.html).
You can run the linter with the `tslint` npm script:
```
$ npm run tslint
```
Unit Testing
Groceries uses NativeScript’s [integrated unit test runner](http://docs.nativescript.org/core-concepts/testing) with [Jasmine](http://jasmine.github.io/). 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](http://docs.nativescript.org/core-concepts/testing).
Travis CI
Groceries uses [Travis CI](https://travis-ci.org/) to verify all tests pass on each commit. Refer to the [`.travis.yml` configuration file](https://github.com/NativeScript/sample-Groceries/blob/release/.travis.yml) for details.
Contributors
The following is a list of all the people that have helped build Groceries. Thanks for your contributions!
[
](https://github.com/tjvantoll)[
](https://github.com/hdeshev)[
](https://github.com/vakrilov)[
](https://github.com/Mitko-Kerezov)[
](https://github.com/jlooper)[
](https://github.com/rosen-vladimirov)
[
](https://github.com/SvetoslavTsenov)[
](https://github.com/ligaz)[
](https://github.com/sis0k0)[
](https://github.com/wdulin)[
](https://github.com/dtopuzov)[
](https://github.com/nadyaA)
[
](https://github.com/vchimev)[
](https://github.com/covex-nn)[
](https://github.com/bundyo)[
](https://github.com/EddyVerbruggen)[
](https://github.com/NathanWalker)[
](https://github.com/nsndeck)
[
](https://github.com/tzraikov)[
](https://github.com/TsvetanMilanov)[
](https://github.com/bradmartin)[
](https://github.com/cmelo)

### Big Thanks
Cross-browser Testing Platform and Open Source Provided by [Sauce Labs](https://saucelabs.com).
[
](https://saucelabs.com)