Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/born2snipe/nbm-center

A local Netbeans update center
https://github.com/born2snipe/nbm-center

java nbm netbeans netbeans-plugin

Last synced: about 2 months ago
JSON representation

A local Netbeans update center

Awesome Lists containing this project

README

        

# NBM Center

This is an application that will host NBMs for Netbeans it's self or for a Netbeans platform application.

## Getting started
- Download the latest jar file
- From the command line type the following:

`java -jar nbm-center-.jar`

This will setup a H2 database and start the server and you are ready to start uploading your modules to the center.

## Available Endpoints
- GET to `/module/all` - returns JSON of all the modules in the center
- POST to `/module` - uploads a NBM to be saved or updated in the center and returns JSON of that module
- GET from `/module/{id}.nbm` - streams the NBM file contents
- DELETE from `/module/{id}.nbm` - removes a NBM from the center
- GET from `/catalog.xml` - streams the catalog XML used by Netbeans or a platform application
- GET from `/catalog.xml.gz` - streams the catalog XML compressed using gzip this is also can be used by Netbeans or a platform application

#### Note: This application was built using [DropWizard](http://dropwizard.codahale.com) so you also have access to the default endpoints provided by the framework.

## FAQ
- Can I change the type of database (MySQL, Oracle, etc)?
- To do this all you need to do is put your JDBC driver in the classpath.
- Create your own YAML configuration file. You can see the default YAML file [here](https://github.com/born2snipe/nbm-center/blob/master/src/main/resources/default.yml).
- To run just type the following at the command line: `java -jar nbm-center-.jar migrateAndRun `

- How to upload a NBM to the center?
- Using curl: `curl -F "[email protected]" http://localhost:8080/module`