Git Product home page Git Product logo

ginja-test's Introduction

Ginja Ionic 2 Test project

Test project

Welcome! This is the Ginja Ionic 2 test project. The purpose of this project is to gauge your level of experience and skill with our technology stack, namely: Ionic 2, Angular 2 and RESTful JSON services.

To complete this project, you will need to log-in to our API, then retrieve and display a list of orders from a restaurant.

By the time you're finished, it should look something like this:

Vendor console demo

There will be two API calls required.

POST /api/v1/oauth/access_token
{
  username: '[email protected]',
  password: 'super-top-secret-password',
  grant_type: 'password',
  client_id: 'vendor-console',
  client_secret: 'super-top-secret-token',
  scope: 'vendor'
}

This will create the access token required to interact with the API (the access token should be sent in a HTTP header for all future requests, "Authorization: Bearer TOKEN_GOES_HERE").

The second request is to retrieve the orders for a restaurant:

GET /api/v1/vendors/orders/completed
{
  data: [
    /* list of restaurants in here */
  ]
}

Set up

Please run

npm -v on your command line

If you have npm verson < 3.x please run this command:

sudo npm install npm@latest -g

to upgrade your npm package

Before Install Ionic

Check your ionic version by

ionic -v

... if you have ionic version 2 beta 11

please uninstall ionic before run any command by

sudo npm uninstall -g ionic

Installation

Install Ionic and Cordova by running the following command in your terminal:

npm install -g cordova

npm install -g ionic

or

sudo npm install -g cordova

sudo npm install -g ionic

Check the installation

You should now have everything you need set up and ready to use on your machine! To verify that the

Ionic CLI (Command Line Interface) is in fact installed on your computer, run the following command:

ionic -v

You can also get some detailed information about your current installation by running the following com- mand from within an Ionic project:

ionic info

Run the project

You will need to access the project by

cd ginja-ionic-test-vendor

and then run the npm install

and finally run

ionic serve

to run the project, which will automatically open in your default web browser.

ginja-test's People

Contributors

davidtran avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.