Skip to content

A demo crytpo project in the SwiftUI with clean architecture.

Notifications You must be signed in to change notification settings

TandohAnthonyNwiAckah/Crypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Project

A demo crytpo project in the SwiftUI with clean architecture.

PREVIEW

LOGIN PAGE HOME PAGE DETAILS PAGE
Main Page Main Page Main Page

API ENDPOINT CODE IN PHP

<?php

//an array to display response
$response = array();

if(isset($_POST['username']) && isset($_POST['password']))
{
    //getting values 
    $username = $_POST['username'];
    $password = $_POST['password'];

        if ($username == "admin" && $password == "admin") {
            $response['status'] = true;
            $response['message'] = "Login successfully";
            echo json_encode($response);
        } 
        else {
            $response['status'] = false;
            $response['message'] = "Incorrect credentials";
            echo json_encode($response);
        }
} 

else {
    $result = array(
        'errorCode' => 406,
        'error' => 'Error! Insufficient parameters'
    );

    echo json_encode($result);
}

?>

About

A demo crytpo project in the SwiftUI with clean architecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages