mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
Implements EJS for some template action
This commit is contained in:
@@ -1,38 +1,38 @@
|
||||
var express = require('express')
|
||||
, app = express();
|
||||
var request = require('request');
|
||||
|
||||
var path = __dirname + '/views/';
|
||||
var express = require('express');
|
||||
var app = express();
|
||||
|
||||
app.listen(80, function(){
|
||||
console.log('CORS-enabled web server listening on port 80');
|
||||
// set the view engine to ejs
|
||||
app.set('view engine', 'ejs');
|
||||
|
||||
// use res.render to load up an ejs view file
|
||||
|
||||
// index page
|
||||
app.get('/', function(req, res) {
|
||||
res.render('pages/index', {
|
||||
});
|
||||
});
|
||||
|
||||
// setting page
|
||||
app.get('/settings', function(req, res) {
|
||||
res.render('pages/settings', {
|
||||
});
|
||||
});
|
||||
|
||||
// about page
|
||||
app.get('/about', function(req, res) {
|
||||
res.render('pages/about');
|
||||
});
|
||||
|
||||
|
||||
app.get("/",function(req,res){
|
||||
res.sendFile(path + "index.html");
|
||||
});
|
||||
|
||||
app.get("/about",function(req,res){
|
||||
res.sendFile(path + "about.html");
|
||||
});
|
||||
|
||||
app.get("/contact",function(req,res){
|
||||
res.sendFile(path + "contact.html");
|
||||
});
|
||||
|
||||
|
||||
app.listen(3000,function(){
|
||||
console.log("Live at Port 3000");
|
||||
});
|
||||
|
||||
|
||||
|
||||
app.get('/Data/:path', function (req, res) {
|
||||
app.get('/data/all-enabled-currencies', function (req, res) {
|
||||
request({
|
||||
url :'http://localhost:8080/exchanges/Poloniex/latest/BTC_LTC'
|
||||
url :'http://localhost:9050/exchanges/enabled/latest/all'
|
||||
},function(err, resp, body){
|
||||
res.send(body);
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
app.listen(80, function(){
|
||||
console.log('CORS-enabled web server listening on port 80');
|
||||
});
|
||||
@@ -1,10 +1,11 @@
|
||||
{
|
||||
"name" : "website-using-express",
|
||||
"name" : "gocryptotrader-website",
|
||||
"version" : "0.0.1",
|
||||
"scripts" : {
|
||||
"start" : "node Server.js"
|
||||
},
|
||||
"dependencies" : {
|
||||
"express" : "latest"
|
||||
"express" : "latest",
|
||||
"ejs":"latest"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<div>
|
||||
<nav class="navbar navbar-inverse" role="navigation" style="padding-left:130px;">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li class="active"><a href="/about">About us<span class="sr-only">(current)</span></a></li>
|
||||
<li><a href="/contact">Contact us</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="jumbotron">
|
||||
<p>
|
||||
Put detail description about you and your company.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,56 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<div>
|
||||
<nav class="navbar navbar-inverse" role="navigation" style="padding-left:130px;">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/about">About us</a></li>
|
||||
<li class="active"><a href="/contact">Contact us<span class="sr-only">(current)</span></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<br/>
|
||||
<form class="form-horizontal" role="form" style="width: 50%;">
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Name</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="name" name="name" placeholder="First & Last Name" value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="email" class="form-control" id="email" name="email" placeholder="example@domain.com" value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="message" class="col-sm-2 control-label">Message</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" rows="4" name="message"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="human" class="col-sm-2 control-label">2 + 3 = ?</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="human" name="human" placeholder="Your Answer">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10 col-sm-offset-2">
|
||||
<input id="submit" name="submit" type="submit" value="Send" class="btn btn-primary">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10 col-sm-offset-2">
|
||||
<! Will be used to display an alert to the user>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,30 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Single page web app using Angularjs</title>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.3/angular-route.min.js"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
||||
<script src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<div>
|
||||
<nav class="navbar navbar-inverse" role="navigation" style="padding-left:130px;">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a href="/">Home<span class="sr-only">(current)</span></a></li>
|
||||
<li><a href="/about">About us</a></li>
|
||||
<li><a href="/contact">Contact us</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="jumbotron"> <p>
|
||||
This is place to put content. You can put slider, short description about your website and place some links for navigation.
|
||||
</p></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
200
web/glorious-web/views/pages/about.ejs
Normal file
200
web/glorious-web/views/pages/about.ejs
Normal file
@@ -0,0 +1,200 @@
|
||||
<!-- views/pages/about.ejs -->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<% include ../partials/head %>
|
||||
</head>
|
||||
<body class="container">
|
||||
|
||||
<header>
|
||||
<% include ../partials/header %>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
|
||||
<div class="jumbotron">
|
||||
<div class="readme boxed-group clearfix announce instapaper_body md" id="readme">
|
||||
<h3>
|
||||
<svg width="16" viewBox="0 0 16 16" version="1.1" height="16" class="octicon octicon-book" aria-hidden="true"><path d="M3 5h4v1H3V5zm0 3h4V7H3v1zm0 2h4V9H3v1zm11-5h-4v1h4V5zm0 2h-4v1h4V7zm0 2h-4v1h4V9zm2-6v9c0 .55-.45 1-1 1H9.5l-1 1-1-1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h5.5l1 1 1-1H15c.55 0 1 .45 1 1zm-8 .5L7.5 3H2v9h6V3.5zm7-.5H9.5l-.5.5V12h6V3z"/></svg>
|
||||
README.md
|
||||
</h3>
|
||||
|
||||
<article itemprop="text" class="markdown-body entry-content"><h2><a aria-hidden="true" href="#cryptocurrency-trading-bot-written-in-golang" class="anchor" id="user-content-cryptocurrency-trading-bot-written-in-golang"><svg width="16" viewBox="0 0 16 16" version="1.1" height="16" class="octicon octicon-link" aria-hidden="true"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>Cryptocurrency trading bot written in Golang</h2>
|
||||
|
||||
<p><a href="https://travis-ci.org/thrasher-/gocryptotrader"><img style="max-width:100%;" data-canonical-src="https://travis-ci.org/thrasher-/gocryptotrader.svg?branch=master" alt="Build Status" src="https://camo.githubusercontent.com/1e8eb47c187ffb439ae782f27635f82f93d08e1c/68747470733a2f2f7472617669732d63692e6f72672f74687261736865722d2f676f63727970746f7472616465722e7376673f6272616e63683d6d6173746572"></a>
|
||||
<a href="https://codecov.io/github/thrasher-/gocryptotrader?branch=master"><img style="max-width:100%;" data-canonical-src="https://codecov.io/github/thrasher-/gocryptotrader/coverage.svg?branch=master" alt="Test Coverage" src="https://camo.githubusercontent.com/c33fdbdc74ecbcef915afc325478cdf4a9317f01/68747470733a2f2f636f6465636f762e696f2f6769746875622f74687261736865722d2f676f63727970746f7472616465722f636f7665726167652e7376673f6272616e63683d6d6173746572"></a></p>
|
||||
|
||||
<p>A cryptocurrency trading bot supporting multiple exchanges written in Golang. </p>
|
||||
|
||||
<p><strong>Please note that this bot is under development and is not ready for production!</strong></p>
|
||||
|
||||
<h2><a aria-hidden="true" href="#exchange-support-table" class="anchor" id="user-content-exchange-support-table"><svg width="16" viewBox="0 0 16 16" version="1.1" height="16" class="octicon octicon-link" aria-hidden="true"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>Exchange Support Table</h2>
|
||||
|
||||
<table><thead>
|
||||
<tr>
|
||||
<th>Exchange</th>
|
||||
<th>REST API</th>
|
||||
<th>Streaming API</th>
|
||||
<th>FIX API</th>
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td>Alphapoint</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ANXPRO</td>
|
||||
<td>Yes</td>
|
||||
<td>No</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bitfinex</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bitstamp</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BTCC</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
<td>No</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BTCE</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BTCMarkets</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Coinbase</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
<td>No</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gemini</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Huobi</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
<td>No</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ItBit</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kraken</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>LakeBTC</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>LocalBitcoins</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>OKCoin (both)</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
<td>No</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Poloniex</td>
|
||||
<td>Yes</td>
|
||||
<td>Yes</td>
|
||||
<td>NA</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
|
||||
<p>** NA means not applicable as the Exchange does not support the feature.</p>
|
||||
|
||||
<h2><a aria-hidden="true" href="#current-features" class="anchor" id="user-content-current-features"><svg width="16" viewBox="0 0 16 16" version="1.1" height="16" class="octicon octicon-link" aria-hidden="true"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>Current Features</h2>
|
||||
|
||||
<ul>
|
||||
<li>Support for all Exchange fiat and digital currencies, with the ability to individually toggle them on/off.</li>
|
||||
<li>REST API support for all exchanges.</li>
|
||||
<li>Websocket support for applicable exchanges.</li>
|
||||
<li>Ability to turn off/on certain exchanges.</li>
|
||||
<li>Ability to adjust manual polling timer for exchanges.</li>
|
||||
<li>SMS notification support via SMS Gateway.</li>
|
||||
<li>Basic event trigger system.</li>
|
||||
</ul>
|
||||
|
||||
<h2><a aria-hidden="true" href="#planned-features" class="anchor" id="user-content-planned-features"><svg width="16" viewBox="0 0 16 16" version="1.1" height="16" class="octicon octicon-link" aria-hidden="true"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>Planned Features</h2>
|
||||
|
||||
<ul>
|
||||
<li>WebGUI.</li>
|
||||
<li>FIX support.</li>
|
||||
<li>Expanding event trigger system.</li>
|
||||
<li>TALib.</li>
|
||||
<li>Trade history summary generation for tax purposes.</li>
|
||||
</ul>
|
||||
|
||||
<p>Please feel free to submit any pull requests or suggest any desired features to be added.</p>
|
||||
|
||||
<h2><a aria-hidden="true" href="#compiling-instructions" class="anchor" id="user-content-compiling-instructions"><svg width="16" viewBox="0 0 16 16" version="1.1" height="16" class="octicon octicon-link" aria-hidden="true"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>Compiling instructions</h2>
|
||||
|
||||
<p>Download Go from <a href="https://golang.org/dl/">https://golang.org/dl/</a><br>
|
||||
Using a terminal, type go get github.com/thrasher-/gocryptotrader<br>
|
||||
Change directory to the package directory, then type go install.<br>
|
||||
Copy config_example.json to config.json.<br>
|
||||
Make any neccessary changes to the config file.<br>
|
||||
Run the application! </p>
|
||||
|
||||
<h2><a aria-hidden="true" href="#binaries" class="anchor" id="user-content-binaries"><svg width="16" viewBox="0 0 16 16" version="1.1" height="16" class="octicon octicon-link" aria-hidden="true"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>Binaries</h2>
|
||||
|
||||
<p>Binaries will be published once the codebase reaches a stable condition.</p>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
|
||||
<div class="well">
|
||||
<h3>Look I'm A Sidebar!</h3>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<% include ../partials/footer %>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
26
web/glorious-web/views/pages/index.ejs
Normal file
26
web/glorious-web/views/pages/index.ejs
Normal file
@@ -0,0 +1,26 @@
|
||||
<!-- views/pages/index.ejs -->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<% include ../partials/head %>
|
||||
</head>
|
||||
<body class="container">
|
||||
|
||||
<header>
|
||||
<% include ../partials/header %>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<div class="jumbotron">
|
||||
<h1>Hello world!</h1>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<% include ../partials/footer %>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
27
web/glorious-web/views/pages/settings.ejs
Normal file
27
web/glorious-web/views/pages/settings.ejs
Normal file
@@ -0,0 +1,27 @@
|
||||
<!-- views/pages/index.ejs -->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<% include ../partials/head %>
|
||||
</head>
|
||||
<body class="container">
|
||||
|
||||
<header>
|
||||
<% include ../partials/header %>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<div class="jumbotron">
|
||||
<h1>Settings</h1>
|
||||
<p>This will be a visiual interface to edit the config file</p>
|
||||
<p>Things like enabling exchanges, currencies and setting excahnge account settings</p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<% include ../partials/footer %>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
3
web/glorious-web/views/partials/footer.ejs
Normal file
3
web/glorious-web/views/partials/footer.ejs
Normal file
@@ -0,0 +1,3 @@
|
||||
<!-- views/partials/footer.ejs -->
|
||||
|
||||
<p class="text-center text-muted">© Copyright 2016 GoCrypto Trader</p>
|
||||
11
web/glorious-web/views/partials/head.ejs
Normal file
11
web/glorious-web/views/partials/head.ejs
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- views/partials/head.ejs -->
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<title>GoCrpto Trader</title>
|
||||
|
||||
<!-- CSS (load bootstrap from a CDN) -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.3/angular-route.min.js"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
||||
21
web/glorious-web/views/partials/header.ejs
Normal file
21
web/glorious-web/views/partials/header.ejs
Normal file
@@ -0,0 +1,21 @@
|
||||
<!-- views/partials/header.ejs -->
|
||||
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="/">
|
||||
GoCrypto Trader
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="/">Dashboard</a></li>
|
||||
<li><a href="/about">About</a></li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav pull-right">
|
||||
<li class=""><a href="/settings">Settings</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user