GithubHelp home page GithubHelp logo

skoolbag's Introduction

SchoolList

Code test submission for SkoolBag.

Live demo of this project can be found here

Running on local file system

Requirements:

  • Node V10
  • MongoDB

To install dependencies and run development server:

npm install
npm run deploy

Caveats

  1. There is no interface for modifying existing documents. (can be implemented)
  2. Name based filtering checks to see if the name starts with the provided value and is case insensitive.
  3. Address based filtering checks to see if the address contains the provided value and is case insensitive.
  4. Filtering is done on the frontend after receiving all the school documents and would not scale well for extremely large datasets.
  5. Input validation is only conducted on the frontend.

Testing

npm run test

Test Output

Architecture

Frontend

Components:

  1. add-school component provides the ui for adding new schools. (src/app/components/add-school/)
  2. list-schools component provides the ui for viewing and filtering schools. (src/app/components/list-schools/)
  3. text-input component is a utility component used to maximize code reuse for user input handling (src/app/components/text-input/)

Services:

  1. schools service is used as the interface with the backend for both fetching, adding and deleting school documents (src/app/services/schools.service.ts)

Backend

  1. Backend is implemented as a simple express server. (server.js)
  2. CRUD api is implemented as a RESTful api. (src_api/endpoints.js)
  3. Database schema is defined using mongoose using mongoose as the driver (src_api/db/schools.js)

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.