Giter Site home page Giter Site logo

kmmahaj / pizza-delivery-tracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/pizza-delivery-tracker

0.0 0.0 0.0 5.45 MB

Pizza Delivery Tracker using AWS Amplify, Amazon Location Service, AWS AppRunner, and AWS Fargate.

License: MIT No Attribution

JavaScript 45.34% Dockerfile 0.82% HTML 3.18% TypeScript 20.89% Python 29.77%

pizza-delivery-tracker's Introduction

Pizza Delivery Tracker

This sample project contains a map-based pizza ordering app with real-time tracking of your delivery. The browser-based frontend shows a map with your current location and lists all pizza places nearby. You can select one to order a pizza from there. Shortly after ordering, a delivery route is calculated and you can monitor the delivery progress in real-time while the pizza icon is moving closer and closer to your location on the map.

There are three main components:

  • Frontend: an AWS Amplify app written in TypeScript, using the Amazon Location Service to render a map and show pizza places with maplibre-js
  • Backend: a containerized web application written in JavaScript using NodeJS, hosted on AWS App Runner with a Amazon DynamoDB table as storage backend
  • Simulator: a containerized demo component to simulate the pizza location updates, using Amazon ECS on AWS Fargate and Amazon SQS

Each component can be deployed individually to your AWS account with infrastructure as code and detailed instructions.

This architecture diagram describes the individual components and resources:

Resources

Prerequisites

  • Python 3 or later
    • check version with python3 -V
  • NodeJS 14 or later
    • check version with node --version
  • Docker or similar container engine
    • integrated with CDK constructs to build container images locally
  • CDK v2.8.0 or later
    • install aws-cdk via NPM: npm install -g aws-cdk, check version with cdk --version

Deployment

All components can be deployed using CDK. Some resources are created and passed to the next component. Please deploy in this order:

  • Deploy simulator
    • see simulator/README.md
  • Deploy backend
    • see backend/README.md
    • use SQS URL and ARN and Location Tracker name and ARN from simulator
  • Deploy frontend
    • see frontend/README.md
    • use App Runner URL from backend

Security

See CONTRIBUTING for more information.

Please see the security sections for each component for additional deployment considerations.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

Emoji SVG files designed by OpenMoji โ€“ the open-source emoji and icon project. License: CC BY-SA 4.0

pizza-delivery-tracker's People

Contributors

kriechi avatar amazon-auto avatar dependabot[bot] 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.