Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
generator-scalatra
Advanced tools
Generates a basic structure for Scalatra REST Application and includes Casbah for MongoDB if you wish.
An example structure of generated project.
.
├── project
│ ├── build.properties
│ └── build.scala
| └── plugins.sbt
├── README.md
├── sbt
├── src
├── main
| ├── resources
| └── scala
| | ├── com
| | | └── example
| | | └── app
| | | └── controllers
| | | └── MessageController.scala
| | └── ScalatraBootstrap.scala
| └── webapp
| └── WEB-INF
| └── web.xml
└── test
└── scala
└── com
└── example
└── app
└── controllers
└── MessageControllerSpec.scala
A generator for Yeoman.
$ npm install -g yo
To install generator-scalatra from npm, run:
$ npm install -g generator-scalatra
Or search generator-scalatra under yeoman.
Make a new directory and cd
into it:
mkdir new-project && cd $_
Finally, initiate the generator:
$ yo scalatra
$ mongod
Create db, collection and insert new message (Optional).
Application will use project name to create db, if the db doesn´t already exist.
$ mongo
> use <project name>
> db.createCollection('messages')
> db.messages.insert({body: 'Hello Mongo World!'})
$ ./sbt
> ~;container:start; container:reload /
Check it out at http://localhost:8080/messages
$ ./sbt
> test
This Changelog follows Semantic Versioning http://semver.org
MIT @ Peter Vilja
FAQs
A Yeoman generator for Scalatra project
The npm package generator-scalatra receives a total of 0 weekly downloads. As such, generator-scalatra popularity was classified as not popular.
We found that generator-scalatra 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.