Coder Social home page Coder Social logo

trial-assignment's Introduction

Project setup

git clone https://bitbucket.org/melior-games/trial-assignment.git
npm install
node server.js
ng serve --open

Endpoints

  http://localhost:3004/books
  http://localhost:3004/formats
  http://localhost:3004/countries
  http://localhost:3004/cities
  http://localhost:3004/companies

Request Authentication header

For retrieving data every request should be supplied with "x-auth-token: bad18eba1ff45jk7858b8ae88a77fa30" header.

Assignment 1

'Main' - page:
1) Output list of available books on main page.
2) List items should contain links to separate page (similar to 'Add New Book') and pre-populate the form.

Assignment 2

'Add New Book' - page:
1) Add form validation and display errors under invalid fields.
2) All fields are required.
3) Format, Country, City, Company options should be loaded from server.
4) Save form data to server.

Assignment 3

'Search' - page:
1) Format options should be loaded from server.
2) Form fields are filters and are optional, although they should still be validated where needed.
3) List of filtered books should have the same look as the list on the 'Main' page.
4) Form fields state changes should be immediately reflected in url GET parameters dynamically, e.g.:
  Form content:
    Author: Miguel De Cervantes
    Format: Paperback
    
  Corresponding url: "http://localhost:4200/search?author=Miguel%20De%20Cervantes&formatId=1"
  
  It should be possible to copy retrieved url, enter in a new browser tab and get the same form state.

trial-assignment's People

Contributors

kefir266 avatar angular-cli avatar

Watchers

James Cloos 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.