Added backend and refactored frond-end to support it.
* Removed unecesery home page * Added PHP Api that provides auth and replaces the json-server for data storage * Added support for alternate geocode-api * Added registration page
This commit is contained in:
13
api/config/db.php.example
Normal file
13
api/config/db.php.example
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
$host = 'localhost';
|
||||
$dbname = 'ttapi';
|
||||
$username = 'ttapi';
|
||||
$password = '';
|
||||
|
||||
try {
|
||||
$pdo = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);
|
||||
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
} catch (PDOException $e) {
|
||||
echo "Connection failed: " . $e->getMessage();
|
||||
}
|
||||
Reference in New Issue
Block a user