Skip to content

jonlabelle/serve-json

Repository files navigation

Serve JSON

ci

A simple HTTP server for static JSON files. Simply drop your JSON files in the src/data directory 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.

Server JSON screenshot

Installation

Installation Steps

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 install

Starting the Server

To start the server, run the following command:

npm serve

Container

Running in a Container

To 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

License

MIT

About

A simple HTTP server for static JSON files.

Topics

Resources

License

Stars

Watchers

Forks

Contributors