Schulprojekt 2019 SVEN - Supermarkt Verwaltung mit Simulation und etwaigen Features
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Ruben Meyer 934fb39856
Webseite aus Archiv
2 years ago
..
api Webseite aus Archiv 2 years ago
pages Webseite aus Archiv 2 years ago
public Webseite aus Archiv 2 years ago
sys Webseite aus Archiv 2 years ago
templates Webseite aus Archiv 2 years ago
README.md Webseite aus Archiv 2 years ago
index.php Webseite aus Archiv 2 years ago

README.md

SVEN

SVEN is a supermarket management system.

Requirements

  • PHP Version 5.5 or higher
    • because of password_* functions

File Structure

  • pages/ - Pages
  • public/ - CSS & Javascript Files
  • sys/ - Core and Framework Files
    • mysql/ - MySQL Connection Wrapper
    • security/ - Authentication & miscellaneous
    • sources/ - Used Libraries
    • sven/ - Some important classes
  • templates/ - prebuilt elements

API Request Methods

  • GET - Read from database
  • POST - Insert to database
  • PATCH - Update in database
  • DELETE - Delete from database

API Output Scheme

{
		"state": "failed", // program state
		"access": "granted|denied", // authentication
		"msg": "{{custom_data_msg}}",
		"data": "{{data}}",
		"error": ["{{error}}", ...] // optional
}

API Parameters

  • article
    • GET
      • limit - limit output
      • search_for - search for value
      • in - column name to search in

API Errors

  • REQUEST_METHOD_NOT_SUPPORTED -> Request method not supported
  • AUTHENTICATION_FAILED -> User not logged in. / Username or password wrong.
  • BAD_REQUEST -> request or information are missing
  • NO_OUTPUT -> No data was passed. Request unfortunately failed.

Credits

Not working things

  • can't install laravel / composer to use an popular framework, so we had to write our own framework