https://github.com/yuokada/bms-json-server
https://github.com/yuokada/bms-json-server
bms json json-api
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuokada/bms-json-server
- Owner: yuokada
- License: mit
- Created: 2022-04-13T01:19:04.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-12T00:42:03.000Z (9 months ago)
- Last Synced: 2025-04-07T01:23:10.241Z (7 months ago)
- Topics: bms, json, json-api
- Language: Shell
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# bms-json-server
- [My JSON Server - Fake online REST server for teams](https://my-json-server.typicode.com/)
- [My JSON Server - yuokada/bms-json-server](https://my-json-server.typicode.com/yuokada/bms-json-server)
## How to build and run a json-server container
```shell
$ docker build -t json-server .
$ docker run -t -v `pwd`:/data -p 8080:8080 json-server
\{^_^}/ hi!
Loading db.json
Done
Resources
http://0.0.0.0:8080/teams
http://0.0.0.0:8080/games
http://0.0.0.0:8080/players
Home
http://0.0.0.0:8080
Type s + enter at any time to create a snapshot of the database
GET /db 304 19.945 ms - -
```
## How to kill a json-server container
```shell
$ docker kill $(docker ps --latest -q)
```
## Limits
> To be able to provide a free service to as many people as possible during this phase, the project comes with a few limits:
>
> - Changes are faked and aren't persisted (just like JSONPlaceholder)
> - Requests are cached (1 minute)
> - db.json has limits
> - All servers are public
> - Private GitHub repositories aren't supported (yet)
see: https://my-json-server.typicode.com/
> - 10KB db.json max
> - 5 max REST endpoints
> - 30 max items per endpoint
see: https://my-json-server.typicode.com/pricing
## Issues
- [--watch is not reloading when host file changes · Issue #8 · clue/docker-json-server](https://github.com/clue/docker-json-server/issues/8)