A simple HTTP server for static JSON files. Simply drop your JSON files in the
src/datadirectory and start serving!
Check out the sample JSON file that comes with the project, or start the server to browse the files in the data/ directory.
To install the project, clone the repo and install the dependencies:
# Clone the repo
git clone https://github.com/jonlabelle/serve-json.git
# Change to the repo directory
cd serve-json
# Install dependencies
npm installTo start the server, run the following command:
npm serveTo run the server in a container, build the image and run the container:
# Build the image
docker|podman|nerdctl build -t serve-json .
# Run the container
docker|podman|nerdctl run -p 3000:3000 serve-json