Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
spa-proxy
Advanced tools
Readme
SPA Proxy FrondEnd
This module add proxy for MAVEN PROJECT
project-pom/
project-ejb/ <!-- Other Project -->
project-xxx/ <!-- Other Project -->
project-asset/ <!-- Web Project -->
project-web/ <!-- Web Project -->
gulpfile.js <!-- Gulp File -->
"spa-proxy": "^1.0.8"
var gulp = require('gulp');
var bs = require('browser-sync').create();
var spa = require('spa-proxy')('maven-project-web', '/path-deploy');
Create Gulp Task
//Create a Browser Sync Server
gulp.task("server", function () {
var proxyURL = 'http://127.0.0.1:8080/'; //JEE Server
bs.init({
startPath: '/',
server: spa.createServer(proxyURL),
online: false,
browser: ["firefox"],
port: 3000
});
});
//Create a watch change
gulp.task("watch", function () {
var _watch = spa.createWatchPath();
console.log("WATCH FOR: ", _watch);
gulp.watch(_watch, function () {
bs.reload();
});
});
//Create a default task
gulp.task("default", ["watch", "server"]);
spa = require('spa-proxy')('#MAVEN-PROJECT-WEB#', '#CONTEXT-PATH#')
example-pom/
example-ejb/ <!-- Other Project -->
example-xxx/ <!-- Other Project -->
example-asset/ <!-- Web Project -->
example-web/ <!-- Web Project -->
gulpfile.js <!-- Gulp File -->
MAVEN POM: example-pom MAVEN WEB: example-asset MAVEN WEB: example-web
spa = require('spa-proxy')('example-web', '/path/demo')
Include other Maven Project
spa.mavenProject.add('example-asset', '/path/to/asset'); // Project in same directory
spa.mavenProject.add('other-project', '/path/to/other', '/path/absolute'); // Project in other directory
Default Directory to static
var spa = require('spa-proxy')('maven-project-web', '/path-deploy');
console.log(' No Proxy Dir: ', spa.noProxy.get()); //part, view, ctrl, css, js
spa.noProxy.add('asset');
console.log(' No Proxy Dir: ', spa.noProxy.get()); //part, view, ctrl, css, js, asset
spa.noProxy.set(['css', 'asset']);
console.log(' No Proxy Dir: ', spa.noProxy.get()); //css, asset
This structure is based by AngularJS and HTML Basic Concept
Include Maven Project
var spa = require('spa-proxy')('maven-project-web', '/path-deploy');
console.log(' Maven Projects: ', spa.mavenProject.get());
//{project: 'maven-project-web', context: '/path-deploy', path: '.'}
spa.mavenProject.add('other-maven-web', '/other-path', '/root/path');
console.log(' Maven Projects: ', spa.mavenProject.get());
//{project: 'maven-project-web', context: '/path-deploy', path: '.'}
//{project: 'other-project-web', context: '/other-path', path: '/root/path'}
FAQs
HTTP Proxy For MAVEN-PROJECT (Proxy for JEE-Rest, Static for Resources)
The npm package spa-proxy receives a total of 137 weekly downloads. As such, spa-proxy popularity was classified as not popular.
We found that spa-proxy 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.