Git Product home page Git Product logo

panalpina_shipment_tracker's Introduction

Panalpina Shipping App Design-to-Prototype

HEROKU URL & DEMO

https://pan-app-tc.herokuapp.com/ To test out the application, please use these tracking numbers: PNH009736, LKHBA-004459, TKY001234, BRRIO-006783, 157-48197836, 220-12345678

Prerequisite

node >= 9.11 and npm >= 5.6 angular-cli >= 6.2

!!! Note: this project uses the node-sass npm package, which, on windows machines requires the node-gyp prerequisites.

Install all dependencies by running npm install in project's root folder.

This project was generated with Angular CLI version 6.2.3.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build. To run the files in the dist folder you can use either apache, nginx. You can also install http-server and use it to run the project:

$ npm i -g http-server
$ http-server dist/panalpina

See https://www.npmjs.com/package/http-server for more details on http-server.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Deploying to heroku

Make sure you have latest Heroku CLI installed:

$ npm install -g heroku-cli

Login to heroku:

$ heroku login

Create the heroku application:

$ heroku apps:create <application-name>

Replace <application-name> with the name of the application you'd like. eg:

$ heroku apps:create pan-app-tc

Build the application:

$ ng build -prod

Add the code to your heroku instance:

$ git add .
$ git add -f dist
$ git commit -m "init"

Finally, deploy to your heroku instance:

$ git push heroku master

See your running app at https://<application-name>.heroku.com, in the given example it would be: https://pan-app-tc.herokuapp.com/, or simply open it by running:

$ heroku open

!!!NOTE: the server.js file is only for serving files on heroku. do not use it on localhost!

Environment configuration files

Please find the env configuration files located in src/environments/, as follows:

environment.ts config file for development environment environment.prod.ts config file for production environment

The available configurations are:

production sets current environment as production or not api Mock urls for the api (locations to json files, as of this moment) gMap.apiKey The google maps api key to use in the application. It is required in api v3. Check here to see how to get one. gmap Config the default center & zoom level for the map

3rd Party libraries

d3js

Mock data

All data can be found in .json files under /assets/data/ folder. The JSON structure is normalized, as well as the properties are (no white space, just camelCase properties).

panalpina_shipment_tracker's People

Contributors

colleenlavin avatar ksmacleod99 avatar

Watchers

 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.