Skip to content

Commit

Permalink
Add info about front-end to the welcome screen
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jun 24, 2020
1 parent 7c9d7be commit c5e3880
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions ui/src/views/Start.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</p>
</div>
<div class="window">
~$: starport tx {{ chain_id }} create-user "Alice" [email protected]
~$: starport tx {{ chain_id }} create-user Alice [email protected]
--from=me
</div>
<div class="narrow">
Expand Down Expand Up @@ -62,17 +62,28 @@
</div>
</div>
</a>
<h2 id="front-end">Front-end</h2>
<p>Starport generated a simple web application inside <code>./ui</code> directory that can interact with your blockchain. In a new terminal window inside your project's directory run the following command:</p>
</div>
<div class="window">
~$: cd ui && npm i && npm run serve
</div>
<div class="narrow">
<p>When the build is finished, open <a href="localhost:1234" target="_blank">a new browser tab</a> to see the application.</p>
</div>
</div>
</div>
</template>

<style scoped>
a {
color: inherit;
}
code {
font-family: monospace;
}
.container {
padding: 4rem 1rem 4rem;
padding: 4rem 1rem 12rem;
max-width: 900px;
width: 100%;
margin-left: auto;
Expand Down Expand Up @@ -178,11 +189,11 @@ export default {
components: {
LogoTendermint,
LogoCosmosSdk,
TerminalWindow,
TerminalWindow
},
data() {
return {
chain_id: "{{chain_id}}",
chain_id: "{{chain_id}}"
};
},
async created() {
Expand All @@ -191,6 +202,6 @@ export default {
} catch {
console.log("Can't fetch /chain_id");
}
},
}
};
</script>

0 comments on commit c5e3880

Please sign in to comment.