forked from parse-community/parse-server-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
101 lines (90 loc) · 3.91 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<title>Parse Serve 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>. Let’s test it?
</p>
<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</a>
</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>
<div id="step-2" class="pure-g step--container step--disabled">
<div class="pure-u-1-5 align-center">
<span class="step--number">2</a>
</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>
<div id="step-3" class="pure-g step--container step--disabled">
<div class="pure-u-1-5 align-center">
<span class="step--number">3</a>
</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>
<div id="step-4" class="pure-g step--container hidden">
<div class="pure-u-1-5 align-center">
<span class="step--number">✓</a>
</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>
</body>
</html>