Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/swordjs/sword-framework

A small and flexible for serverless nodejs framework ๐Ÿ’—
https://github.com/swordjs/sword-framework

aws cloudflare nodejs serverless serverless-framework serverless-functions serverless-plugin typescript unicloud

Last synced: 14 days ago
JSON representation

A small and flexible for serverless nodejs framework ๐Ÿ’—

Awesome Lists containing this project

README

        



## Sword.js

[ไธญๆ–‡่ฏดๆ˜Ž](https://github.com/swordjs/sword-framework/tree/master/docs/README-CN.md) / [ไธญๆ–‡ๆ–‡ๆกฃ](https://www.yuque.com/mlgrgm/lrf0ra/af4ngt) /
[Unicloud ๅนณๅฐ](https://github.com/swordjs/sword-framework/tree/master/docs/READEME-DCLOUD-CN.md)

This is the first serverless framework in [sword.org](https://github.com/swordjs) for nodejs. No doubt it is fully developed based on Typescript. Except for
framework core, have a toolkit for developer, make it easy to use same as developing common nodejs application, you can use it develop different company
serverless application, like AWS, Dcloud, Tencent, Alibaba, etc.

## Features

- โค๏ธ Support typescript
- ๐Ÿฎ Support plugin system
- ๐Ÿ•ท๏ธ Support file system routes
- ๐Ÿฅท Out of the box toolkits for developer
- ๐Ÿ“– Runtime check on typescript
- ๐Ÿ“ƒ Generate markdown or openapi3.0 api documentation
- ๐Ÿ˜ Hooks api design
- ๐Ÿงฉ Vscode-extension for develop application better.

## Platforms

| platform | status |
| -------- | ------ |
| Server | โœ… |
| Unicloud | โœ… |
| Worker | โš ๏ธ |
| Alibaba | โš ๏ธ |
| Tencent | โš ๏ธ |
| AWS | โš ๏ธ |

## Install

```bash
npm i @swordjs/sword-framework
```

We highly recommend you install the CLI toolkits to global, so you can use them in your project easily.

```bash
npm i @swordjs/sword-framework-cli -g
```

## Init template

You can use the CLI toolkit to init a new project, the template from [here](https://github.com/swordjs/sword-framework/tree/master/example)

```bash
sword init
```

## Start

```bash

# (server platform)

npm run dev

# (unicloud platform)

npm run dev:unicloud

# or

npm run build
```

## SwordJS - Vscode extension

[swordjs-Vscode extension](https://marketplace.visualstudio.com/items?itemName=swordjs.framework-helper)

## Why should I use sword.js ?

We hope this little framework is like a sword in your hands. it can be out of the box, and can qualified your in large part of the serverless platforms. this
framework development level is very low, but because of nice design, the use cost is very low yet.

I believe that it's useless to say more. Only after trying can we know how fragrant this framework is

## Contact us (for Chinese๐Ÿ‡จ๐Ÿ‡ณ)

## Friend open source project


ucharts