Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuokada/bms-json-server
https://github.com/yuokada/bms-json-server
bms json json-api
Last synced: 3 days 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 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T00:39:10.000Z (16 days ago)
- Last Synced: 2024-10-30T02:52:19.775Z (16 days 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
DoneResources
http://0.0.0.0:8080/teams
http://0.0.0.0:8080/games
http://0.0.0.0:8080/playersHome
http://0.0.0.0:8080Type 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 endpointsee: 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)