-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdev.html
More file actions
74 lines (68 loc) · 2.49 KB
/
Copy pathdev.html
File metadata and controls
74 lines (68 loc) · 2.49 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>lifescope-dev</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>
<body class="stackedit">
<div class="stackedit__left">
<div class="stackedit__toc">
<ul>
<li><a href="#lifescope-contributor-quickstart">LIFESCOPE Contributor Quickstart</a>
<ul>
<li><a href="#join-the-developer-team">Join the developer team</a></li>
</ul>
</li>
<li><a href="#developer-setup">Developer Setup</a>
<ul>
<li><a href="#change-your-host-file">Change your host file</a></li>
<li><a href="#install-and-run-nginx">Install and run NGINX</a></li>
<li><a href="#add-config-files-to-api-etl-app">Add Config Files to API, ETL, APP</a></li>
<li><a href="#how-to-debug">How to debug:</a></li>
<li><a href="#graphql-playground-web-interface-for-api">GraphQL Playground web interface for API</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="stackedit__right">
<div class="stackedit__html">
<h1 id="lifescope-contributor-quickstart">LIFESCOPE Contributor Quickstart</h1>
<h2 id="join-the-developer-team"><a href="https://lifescope.io/open-source/">Join the developer team</a></h2>
<h1 id="developer-setup">Developer Setup</h1>
<h2 id="change-your-host-file">Change your host file</h2>
<pre><code>127.0.0.1 app.lifescope.io api.lifescope.io xr.lifescope.io static.lifescope.io
</code></pre>
<h2 id="install-and-run-nginx">Install and run NGINX</h2>
<p>Config in lifescope-api</p>
<pre><code>sudo nginx -p . -c nginx.conf
</code></pre>
<h2 id="add-config-files-to-api-etl-app">Add Config Files to API, ETL, APP</h2>
<p>Add node config files for production variables.</p>
<p>Such as:</p>
<p>/config/dev.json<br>
or<br>
/config/prod.json</p>
<pre><code>{
"bitscoop": {
"api_key": "[key]"
},
"mongodb": {
"address": "mongodb://[user]:[password]@[url]/live?ssl=true&replicaSet=[lifescope-shards]authSource=admin"
}
}
</code></pre>
<h2 id="how-to-debug">How to debug:</h2>
<p>RUN APP</p>
<p>NODE_ENV=dev babel-node server.js --inspect-brk=localhost:3333</p>
<p>In Chrome go to: <a>chrome://inspect/#devices</a></p>
<p>Configure > Target: <a href="http://apl.lifescope.io:3333">apl.lifescope.io:3333</a></p>
<h2 id="graphql-playground-web-interface-for-api">GraphQL Playground web interface for API</h2>
<p>Example on glitch:<br>
<a href="https://apl.lifescope.io:3333/gql-p/">https://apl.lifescope.io:3333/gql-p/</a></p>
</div>
</div>
</body>
</html>