
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
baboon-frontend
Advanced tools
Baboon SPA frontend reference application, based on Angular, backend independent.
$ npm install baboon-frontend
The module includes the lib with the directives and services.
See the docs folder
var fs = require('fs');
var express = require('express');
var path = require('path');
var app = express();
// app files in public
var pub = path.join(__dirname, 'public');
app.use(express.static(pub));
// Just send the app-name.html or index.html to support HTML5Mode
app.all('/:app*', function (req, res) {
var app = req.params.app;
var appFile = app + '.html';
if (appFile === 'main.html' || !fs.existsSync(path.join(pub, appFile ))) {
res.sendfile('index.html', {root: pub});
}
else {
res.sendfile(appFile, {root: pub});
}
});
module.exports = app;
server {
listen *:80
server_name my-app;
root /path/to/app;
location ~ ^/(main)|(/$) {
try_files $uri /index.html;
}
location ~ ^/([a-z]+) {
set $var $1;
try_files $uri /$var.html /index.html;
}
}
<VirtualHost *:80>
ServerName my-app
DocumentRoot /path/to/app
<Directory /path/to/app>
RewriteEngine on
# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Rewrite everything else to index.html or toplevel.html to allow html5 state links
RewriteRule ^(main)|^($) index.html [L]
RewriteRule ^([a-z]+) $1.html [L]
</Directory>
</VirtualHost>
Instead of us handing out a formal style guide, simply stick to the existing programming style. Please create descriptive commit messages. We use a git hook to validate the commit messages against these rules. Easily expand Baboon with your own extensions or changes in the functionality of baboon-frontend itself. Use this workflow:
We will check the tests, the example and test coverage. In case your changes are useful and well tested, we will merge your requests.
This section describes how to set up your development environment to build and test baboon-frontend with the example app.
Global node modules
Linux / Mac:
$ sudo npm install -g grunt-cli
Windows:
$ npm install -g grunt-cli
The example application is also the reference implementation of Baboon. Fork Baboon repository and install the dependent modules with npm and bower.
$ git clone https://github.com/litixsoft/baboon-frontend.git
$ cd baboon-frontend
$ npm install
$ grunt serve
The grunt serve
command builds the example application in development mode, starts the server and opens the application in a browser.
It then watches for changes inside the directories. When a change is detected, grunt rebuilds the app and reloads the site in the browser.
Every test run includes the code style check with eslint.
Unit tests
$ grunt test
Unit tests code coverage
$ grunt cover
End 2 end test with protractor
$ grunt e2e
Unit and e2e tests in production mode (minified files)
$ grunt test:dist
Continuous integration test (generates test results as xml files)
$ grunt ci
We use grunt-bump and grunt-conventional-changelog internally to manage our releases.
To handle the workflow, we created a grunt task release
. This happens:
the new version number
]"the new version number
]Release a new patch
$ grunt release
Release a new minor version
$ grunt release:minor
Release a new major version
$ grunt release:major
Copyright (c) 2014-2018 Litixsoft GmbH Licensed under the MIT license.
FAQs
Baboon singlepage frontend, based on AngularJS, backend independent.
The npm package baboon-frontend receives a total of 1 weekly downloads. As such, baboon-frontend popularity was classified as not popular.
We found that baboon-frontend demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.