Giter Club home page Giter Club logo

db2018_ex5's People

Contributors

minitour avatar orsanawwad avatar tomergoldfeder avatar

Watchers

 avatar  avatar  avatar

db2018_ex5's Issues

RoomController: read all

Controller requests 2 parameters for read_all: hospitalID and departmentID.
The second parameter is not needed here.

Update Tests

Some tests do not match the backend controller.
Make sure after making the API call to add a delay to allow the assertion to happen:

api.readAll(params, (response,items) -> {
        assertTrue(items!=null && items.size() > 0);
});
try { Thread.sleep(3000); } catch (Exception ignored){}

Add UpdatePassword controller

Add a new route /updatePassword

Parameters: ACCOUNT_ID, SESSION_TOKEN, currentPassword,newPassword.
Response: Success/Failure

Logic:
Check if the currentPassword matches the password that is stored. Use Bcrypt.checkpw().

Database Dependencies:

  • Needs a stored procedure to update the password.
    Parameters(ACCOUNT_ID, password)
UpdateAccounts SET password = @password WHERE ACCOUNT_ID = @ACCOUNT_ID;
SELECT @ACCOUNT_ID;

Plan the design and architecture of the system

After understanding the requirements collected in issue #1, start designing the system.
This includes both the client and the server:

Server

  • REST API Design and Web Services
  • Controllers Definitions
  • Database Integration and Models Definition
  • Roles and Permissions management
  • Security Mechanisms

Client

  • API Manager Design
  • Screens UI / UX
  • Controllers
  • Local Storage

Requirements

Read all the files in the reference folder and extract all requirements starting from EX5, then EX1, EX2, EX3.

  • What features should the system include?
  • How many roles should the system be able to handle?
  • How many predefined SQL queries (Stored Procedures) should we define and what are they and where will they be used?
  • What triggers should we create?
  • What are the screens that we need?

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.