1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-23 16:41:48 +01:00

Reorganization a bit more. Updated readme with build/run instructions.

This commit is contained in:
Kyle Spearrin 2016-12-01 00:07:03 -05:00
parent b72a52232d
commit 3101e57c36
7 changed files with 23 additions and 16 deletions

View File

@ -4,6 +4,23 @@
The bitwarden Web project is an AngularJS application that powers the web vault (https://vault.bitwarden.com/).
# Build/Run
**Requirements**
- Node.js
- Gulp
Unless you are running the [Core](https://github.com/bitwarden/core) API locally, you'll probably need to switch the
application to target the production API. Open `package.json` and set `production` to `true`.
Then run the following commands:
- `gulp build`
- `gulp serve`
You can now access the web vault at `http://localhost:4001`.
# Contribute
Code contributions are welcome! Please commit any pull requests against the `master` branch.

View File

@ -1,6 +0,0 @@
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-preview2-003121"
}
}

View File

@ -190,9 +190,9 @@ function config() {
constants: _.merge({}, {
appSettings: {
version: project.version,
environment: project.environment
environment: project.production ? 'Production' : 'Development'
}
}, require('./settings.' + project.environment + '.json') || {})
}, require('./settings' + (project.production ? '.Production' : '') + '.json') || {})
}));
}

View File

@ -1,7 +1,7 @@
{
"name": "bitwarden",
"version": "1.4.0",
"environment": "Development",
"production": false,
"devDependencies": {
"connect": "3.4.1",
"lodash": "4.13.1",

View File

@ -1,5 +0,0 @@
{
"appSettings": {
"apiUri": "http://localhost:4000"
}
}

View File

@ -1,5 +1,6 @@
{
"appSettings": {
"rememberedEmailCookieName": "bit.rememberedEmail"
"rememberedEmailCookieName": "bit.rememberedEmail",
"apiUri": "http://localhost:4000"
}
}

View File

@ -1,2 +1,2 @@
angular.module("bit")
.constant("appSettings", {"rememberedEmailCookieName":"bit.rememberedEmail","version":"1.4.0","environment":"Development","apiUri":"http://localhost:4000"});
.constant("appSettings", {"rememberedEmailCookieName":"bit.rememberedEmail","apiUri":"http://localhost:4000","version":"1.4.0","environment":"Development"});