Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/chenhg5/mins
- Owner: chenhg5
- License: mit
- Created: 2018-07-09T02:06:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-21T07:19:53.000Z (about 6 years ago)
- Last Synced: 2024-10-02T09:07:00.458Z (about 2 months ago)
- Language: Go
- Homepage:
- Size: 43.9 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 |