Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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 8 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.