Files
OpenSign/apps/OpenSignServer/public/test.html
T
2023-10-22 01:37:25 +05:30

109 lines
4.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Parse Server Example</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/pure/0.6.0/grids-min.css" rel="stylesheet">
<link href="/public/assets/css/style.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="align-center">
<img id="parse-logo" src="/public/assets/images/parse-logo.png">
</div>
<div class="advice">
<p><strong>Hi</strong>! We've prepared a small 3-steps page to assist you testing your local Parse server.</p>
<p>These first steps will help you run and test the Parse server locally and were referrenced by the <a href="https://github.com/ParsePlatform/parse-server/wiki/Migrating-an-Existing-Parse-App">migration guide</a> provided by <a href="https://github.com/ParsePlatform/">Parse Platform</a>.</p>
</div>
<p class="up-and-running">Looks like our local Parse Serve is running under <span id="parse-url">...</span>. Lets test it?</p>
<p>We'll use an app id of "myAppId" to connect to Parse Server. Or, you can
<a href="javascript: var newAppId = prompt('What app id should we use to talk to Parse Server?'); if (newAppId) { $('#appId').val(newAppId); }">change it</a>.
<p>We have an express server with Parse server running on top of it connected to a MongoDB.</p>
<p>The following steps will try to save some data on parse server and then fetch it back. Hey ho?</p>
<div id="step-1" class="pure-g step--container">
<div class="pure-u-1-5 align-center">
<span class="step--number">1</span>
</div>
<div class="pure-u-4-5">
<p class="step--info">Post data to local parse server:</p>
<div class="pure-g">
<div class="pure-u-1-5">
<a href="#" id="step-1-btn" class="step--action-btn">Post</a>
</div>
<div class="pure-u-4-5">
<!-- <div class="code-label " title="Output">Output</div> -->
<pre id="step-1-output" class="step--pre hidden">...</pre>
</div>
</div>
</div>
<div id="step-1-error" class="hidden pure-u-4-5 step--error"></div>
</div>
<div id="step-2" class="pure-g step--container step--disabled">
<div class="pure-u-1-5 align-center">
<span class="step--number">2</span>
</div>
<div class="pure-u-4-5">
<p class="step--info">Fetch data from local parse server:</p>
<div class="pure-g">
<div class="pure-u-1-5">
<a href="#" id="step-2-btn" class="step--action-btn">Fetch</a>
</div>
<div class="pure-u-4-5">
<pre id="step-2-output" class="step--pre hidden">...</pre>
</div>
</div>
</div>
<div id="step-2-error" class="hidden pure-u-4-5 step--error"></div>
</div>
<div id="step-3" class="pure-g step--container step--disabled">
<div class="pure-u-1-5 align-center">
<span class="step--number">3</span>
</div>
<div class="pure-u-4-5">
<p class="step--info">Test Cloud Code function from ./cloud/main.js:</p>
<div class="pure-g">
<div class="pure-u-1-5">
<a href="#" id="step-3-btn" class="step--action-btn">TEST</a>
</div>
<div class="pure-u-4-5">
<pre id="step-3-output" class="step--pre hidden">...</pre>
</div>
</div>
</div>
<div id="step-3-error" class="hidden pure-u-4-5 step--error"></div>
</div>
<div id="step-4" class="pure-g step--container hidden">
<div class="pure-u-1-5 align-center">
<span class="step--number"></span>
</div>
<div class="pure-u-4-5">
<p id="local-parse-working">
Congrats! Our local Parse server is working. :)
</p>
</div>
</div>
<footer id="footer" class="align-center">
<ul>
<li><a href="https://parse.com" target="_blank">Parse.com</a></li>
<li><a href="https://parse.com/docs" target="_blank">Docs</a></li>
<li><a href="https://github.com/ParsePlatform/parse-server-example" target="_blank">Github</a></li>
</ul>
</footer>
</div>
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="/public/assets/js/script.js"></script>
<input type="hidden" id="appId" value="myAppId" />
</body>
</html>