Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/chenhg5/mins

a mini restful resource server for frontend workers. Make it easy!
https://github.com/chenhg5/mins

Last synced: about 1 month ago
JSON representation

a mini restful resource server for frontend workers. Make it easy!

Awesome Lists containing this project

README

        

# Mins

a mini restful server

to build a efficient restful server with only a command

## usage

mac

```
brew tap chenhg5/tap && brew install mins
```

linux

```
wget https://github.com/chenhg5/mins/releases/download/0.0.4/mins_linux -O mins
mins -c /the/config/file/path
```

## config.ini example

```
[server]
port = 4006

[database]
addr = localhost
port = 3306
user = root
password = root
database = example
```

## route

| Method | Path |
| :-------: | :-----: |
| GET | /:table/:id |
| DELETE | /:table/:id |
| PUT | /:table/:id |
| POST | /:table |