The backend server repository for the team Delta website displaying The World Bank data in a visually accessible format.
This endpoint gives a list of all countries in the database as an array.
This endpoint gives a list of all indicators in the database as an array.
This endpoint gives the indicator and value for a given country for every year.
For a given country and indicator, this will return the value for that indicator for every year.
For a given country, indicator and year, this will return the value for that indicator for that specific year.
For 2 given countries and an indicator, get all the indicator values for all the years available.
For 2 given countries and an indicator, get the indicator value for a specific year.
Post an email and password to this endpoint in order to create an account. The password stored will be encrypted using bCrypt with salt in users.db. Emails must be unique and error will be given if trying to sign up with an existing email.
Post an email and password to this endpoint in order to login to an existing account. Will return true if login is successful and false otherwise. The login time and user will be logged in the sessions table in users.db. Cookies will also be set using a v4 generated unique ID.
Project manager: Engineer Oliver Case-Green
Systems architect: Engineer Harry Davis
Quality assurance: Engineer Tamoor Waheed