Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
@byu-oit/wabs-starter
Advanced tools
A command line tool for managing and running single page web applications (SPA) that use WABS inside of a docker container.
npm install -g @byu-oit/wabs-starter
Define your WSO2 application credentials.
Set up a WSO2 application on http://api.byu.edu/store.
Navigate to My Applications
and add an application.
The callback URL should be https://<your-domain>/wabs/oauth-code
. If you are developing on your local machine then your callback URL might look like this: https://localhost:8080/wabs/oauth-code
.
Navigate to My Subscriptions
, select your application from the dropdown menu, and generate the credentials. You will need these credentials soon.
Start the terminal application: wabs manage
Select Create a New App
.
Enter the name (numbers, letters, and dashes allowed).
Enter consumer key and consumer secret.
Enter encrypt secret. This is used to encrypt private data. You can choose any password, but it should be a good one.
Save the changes.
Select the option to Build App
, fill out the form, and select Build
.
Exit the terminal application: Ctrl-C
.
Navigate to the directory that the build was placed into.
Install dependencies: wabs npm install
.
Start the application: wabs start
For additional commands see the WABS CLI help: wabs help
Important!! You should understand this section before your proceed.
To promote consistency for BYU OIT Application Development the following definition for a single page app will be used:
A single WSO2 application.
A single Express server.
A single index.html
file.
A single domain name, for example: my-app.byu.edu
.
WSO2 is our API store. If you want to make REST API calls then this is the tool you should be using.
You must create a WSO2 app at http://api.byu.edu/store.
The WSO2 app must have a consumer key and consumer secret generated for it.
We are using Express server for our NodeJS servers.
The server uses wabs-middleware to manage CAS authentication, WSO2 authorization, and interoperability with legacy frameworks.
It serves static files from the www
directory.
It defines API routes in the server/routes
directory.
There is one index.html
file and it resides at www/index.html
.
This is the root of your front-end application.
It loads all CSS and JavaScript files (whether statically or dynamically) that are necessary for the entire application.
It have multiple views. What is visible on the screen may change dramatically without navigating away from the index.html
file.
It may support multiple routes. A route causes the URL to look different but it is still on the same index.html
file. Views are often tied to routes.
The domain will serve up exactly one index.html
file.
The domains admissions.byu.edu
and application.admissions.byu.edu
can point to two different single page apps.
The terminal application assists in the defining and creating of full stack single page web applications (SPA) that uses WABS. The terminal application can:
Build a new SPA from a template.
Manage the WSO2 credentials for SPAs defined on the machine.
Test WSO2 credentials.
Start the terminal application: wabs manage
The keyboard can be used to navigate the terminal application. See the keyboard help at the bottom.
The terminal application may support mouse usage, depending on what terminal you are using.
The left side has a list of all full-stack apps currently defined on the machine.
Top left is a button to define a new full-stack app.
The middle column is the full-stack app menu. Select an item to see details and list of controls in the right column.
The above usage is the recommended usage, but if you'd like to do things by hand it's pretty straight forward too.
Credentials are stored in a file located in your home directory under .wabs/config.json
. If you want to manually manage the credentials file then you need to modify this file. If you have not used the wabs
command and saved an app then this file will not exist yet but it can be created either manually or through the wabs
terminal application.
The credentials file is structured like this:
{
"my-first-app": {
"consumerKey": "asdf1234",
"consumerSecret": "hjkl7890",
"encryptSecret": "a2*r5jLDOx0"
}
}
Download or clone the repository at https://github.com/byu-oit/wabs-starter
Delete everything except the starter
directory.
Do a find and replace for each of the following for the entire starter
directory.
{{name}}
with the name of your app as defined in the $HOME/.wabs/config.json
file.Rename the starter
directory to whatever you want.
FAQs
A starter template for building single page applications using Vue, Vue Router, and Vuex in conjunction with Gulp and Webpack.
The npm package @byu-oit/wabs-starter receives a total of 16 weekly downloads. As such, @byu-oit/wabs-starter popularity was classified as not popular.
We found that @byu-oit/wabs-starter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.