Code Monkey home page Code Monkey logo

challenge's Introduction

PostsDemo

This project is fully dockerized, to start it just run docker-compose up and navigate to http://localhost:4200/.

Running unit tests

Run ng test in /posts-demo to execute the unit tests via Karma.

Functionality

This app presents two different approaches to consume the Post API, a classic table and a dynamic map. In both scenarios it's possible to do basic CRUD actions, it uses the same components to ensure the logic is not duplicated.

The form has validations to check the required fields are present and also the latitude and longitude fields stay between the logic range.

The list is updated whenever there are changes, as well as the dynamic map. It's possible to click on the map to see data about the post selected, and to locate the post in the map using the Map button.

Improvements

To further expand this challenge, I would change the Post interface to a Class, with methods to serialize and deserialize the Post data between backend and frontend.

It's necessary to implement a system to gracefully catch and show the errors during the CRUD actions.

It would be nice to be able to create posts doing a click over the map and showing the Post form with the coordinates already populated.

Tech stack

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.