0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

Added Setup instructions

This commit is contained in:
Brian Peacock 2014-05-06 17:48:15 -05:00
parent 34b631fa12
commit 5a98db9589
2 changed files with 14 additions and 5 deletions

View file

@ -5,10 +5,18 @@
<title>{{ name }}</title>
</head>
<body>
<h1>{{ name }}</h1>
<h1><a href='/'>{{ name }}</a></h1>
<input type='search' />
<button>Search</button>
<form>
<input type='search' name='q' />
<button>Search</button>
</form>
<h2>Setup:</h2>
<code>
npm set registry {{ baseUrl }}<br>
npm adduser --registry {{ baseUrl }}
</code>
{{#each locals}}
<article>

View file

@ -139,8 +139,9 @@ module.exports = function(config_hash) {
}
else {
res.send(template({
name: "Sinopia",
locals: locals
name: "Sinopia",
locals: locals,
baseUrl: req.protocol + '://' + req.get('host') + '/'
}));
}
})