New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

sapphire-express

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sapphire-express

Single Page Application Framework

latest
Source
npmnpm
Version
1.1.15
Version published
Weekly downloads
7
-36.36%
Maintainers
1
Weekly downloads
 
Created
Source

Sapphire

Sapphire is a node.js application framework, specifically designed for the creation of Single Page Applications (SPA). These applications have a number of special considerations over more traditional web applications, for example, hot loading of parts of the application when they are needed, construction of the application from multiple sources, AJAX service functions to perform backend actions and retrieve updated data, and a front end API that ties it all together.

For full documentation of Sapphire, check out the Sapphire Site.

Quick Install Guide

Install

npm install -g sapphire-express
cd project
sapphire install
npm install

Creating a project

sapphire app test

Run

here #windows
. here #osx or linux
node server

What's going on here?

When Sapphire is installed globally, it creates a command line interface that can be used to create skeletons for a number of Sapphire specific features. The two options used here are install and app. The first creates a sapphire installation in the current directory. This will install the default sapphire server.js file, a config directory with default confiuration files and a package.json file with the required npm packages. It also creates a batch or shell script called here that can be used to setup the necessary environment variables to point Sapphire at the configuration files.

The second option, app, creates a basic application. In this case, we are creating the application "test". The application isn't very exciting, but it's a place to start.

For a more indepth look at Sapphire, checkout the the Sapphire Site.

Keywords

framework

FAQs

Package last updated on 27 Sep 2022

Did you know?

Socket

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.

Install

Related posts