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

https://github.com/graphform/swim-create

Swim create tool for easier and more beginner-friendly creation and deployment of swim applications.
https://github.com/graphform/swim-create

Last synced: 7 months ago
JSON representation

Swim create tool for easier and more beginner-friendly creation and deployment of swim applications.

Awesome Lists containing this project

README

          

# swim-create CLI tool

Install *nix:

```
curl -L https://github.com/nstreamio/swim-create/releases/latest/download/swim-create-x86_64-unknown-linux-gnu.tar.gz | sudo tar -xz -C /usr/local/bin
```
or download manually and run:
```
sudo tar -f swim-create-x86_64-unknown-linux-gnu.tar.gz -xz -C /usr/local/bin
```

Install macOs:

```
curl -L https://github.com/nstreamio/swim-create/releases/latest/download/swim-create-aarch64-apple-darwin.tar.gz | sudo tar -xz -C /usr/local/bin
```
or download manually and run:
```
sudo tar -f swim-create-aarch64-apple-darwin.tar.gz -xz -C /usr/local/bin
```

## Project structure

The CLI tool creates a base Swim project that is runnable, allowing developers to get started quicker by just adding their business logic.

A brief description of the most important files and their function:

### Gradle templates

`settings.gradle` - Contains the project name.

`build.gradle` - Contains the name of the main Java class and the Swim version.

`server.recon` - Contains information about the Swim plane and the port for the Swim server.

`MainPlane.java` - Is the Swim plane definition and the entry point.

### Maven templates

`pom.xml` - Contains the project name, the name of the main Java class and the Swim version.

`server.recon` - Contains information about the Swim plane and the port for the Swim server.

`MainPlane.java` - Is the Swim plane definition and the entry point.

### Rust templates

`main.rs` - Contains the Swim plane definition and the entry point.

`utils.rs` - Contains helper methods for running the Swim server and for logging.

`Cargo.toml` - Contains the project name, the Swim version and the project dependencies.