https://github.com/hesbon-osoro/docker-json-server
JSON Server built and deployed using Docker
https://github.com/hesbon-osoro/docker-json-server
cors docker expressjs json-server lowdb nodejs
Last synced: 2 months ago
JSON representation
JSON Server built and deployed using Docker
- Host: GitHub
- URL: https://github.com/hesbon-osoro/docker-json-server
- Owner: hesbon-osoro
- Created: 2022-08-21T16:28:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-21T22:18:38.000Z (almost 4 years ago)
- Last Synced: 2025-07-12T15:40:49.302Z (11 months ago)
- Topics: cors, docker, expressjs, json-server, lowdb, nodejs
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSON Server
## Technologies
- Node.js
- Express
- Docker
- JSON
## Installation and Setup
To Setup the application, run the following commands
```code
# Clone the repo
git clone https://github.com/hesbon-osoro/docker-json-server.git
# Go to the directory and install the node packages
cd docker-json-server && yarn
# To run the local server
node index.js
# Open the local server on
http://localhost:4000/notes
# To build the image with Docker
docker build -t low-json .
# Incase you run into permission error (Ubuntu 20.04)
sudo chmod 666 /var/run/docker.sock
# To list Docker images
docker images
# To run Docker image
docker run -p 4000:4000 -d low-json
# To view the list of running Docker containers
docker ps
# To stop the running Docker container
docker stop [CONTAINER ID]
```