https://github.com/songquanpeng/rest-server
General server for toy projects.
https://github.com/songquanpeng/rest-server
json-server rest-server serverless toy-project
Last synced: 8 months ago
JSON representation
General server for toy projects.
- Host: GitHub
- URL: https://github.com/songquanpeng/rest-server
- Owner: songquanpeng
- Created: 2020-05-07T13:39:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T05:49:53.000Z (over 1 year ago)
- Last Synced: 2025-01-08T05:32:58.419Z (9 months ago)
- Topics: json-server, rest-server, serverless, toy-project
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rest Server
## Description
+ Rest server implemented in GoLang.
+ Out-of-the-box feature.
+ Use it as your toy project's backend, so you can focus on the frontend.
+ Quite easy to deploy, only one binary file.
+ [Demo](https://iamazing.cn/page/rest-server-demo).## TODO List
- [x] Implement basic REST api (GET, POST, PUT & DELETE).
- [ ] Support token authentication.
- [ ] API call limit.
- [ ] Support http proxy.## Usage
```
Usage of rest-server:
-port int
specify the listening port. (default 3000)
-token string
specify the private token. (default "token")
```Example: `./server.exe -port 80 -token private`
You can use pm2 to start the binary: `pm2 start ./rest-server -- -port 3002 -token private`