Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

api-pls-example

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-pls-example

An example project that utilizes API Pls

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

API Pls Example

This project demonstrates how to use API Pls in your own project. There's not much here, and that's because API Pls is intended to be lightweight.

There are three things worth nothing:

.plsrc

This is one way to pass options into API Pls.

The resources directory

This is where you put your resource models. You can configure this location in .plsrc.

The npm scripts

If you open up package.json, you'll see three scripts related to API Pls:

  1. npm run migrate - This builds migrations based on the resource models you have defined. You'll need to do this one time before you can start up the API.
  2. npm run reset - This resets the database you've specified by wiping all of the data inside of it. This lets you start anew.
  3. npm run start - Start up the API webserver.

That's all there is to it!

Keywords

FAQs

Package last updated on 05 Feb 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc