https://github.com/nikhilmuz/grofers-assignment
Grofers Assignment
https://github.com/nikhilmuz/grofers-assignment
Last synced: 3 months ago
JSON representation
Grofers Assignment
- Host: GitHub
- URL: https://github.com/nikhilmuz/grofers-assignment
- Owner: nikhilmuz
- Created: 2019-04-06T23:07:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-07T05:57:36.000Z (about 6 years ago)
- Last Synced: 2025-01-26T13:09:21.589Z (5 months ago)
- Language: Python
- Homepage: https://nikhilkumar.ga
- Size: 87.9 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Grofers-Assignment
This repository provides the backend and frontend of the sample app to store and modify and view keyvalue pair and subscribe to realtime changes.
To deploy this code easily use docker. If not already installed then get it installed from snap using the following command
```
sudo snap install docker
```
After installing clone this repository and navigate to backend foler at /Backend using command
```
cd Grofers-Assignment/Backend
```
Create and enable docker container using the following command
```
sudo docker build -t grofers .
sudo docker run --name grofers-api -p 8000:8000 -d grofers
```
This will enable the API at the port 8000 of the host.
Install the python from [Python.org](https://python.org)
Navigate to frontend folder and install dependency using the following command
```
cd ..
cd Frontend-CLI
pip install -r requirements.txt
```
Use the command as per the following instruction:
1. To get the value of a key use
```
python store.py get
```
2. To add or update the value of a key use
```
python store.py put```
3. To monitor realtime changes to the key values start the following in separate console
```
python store.py watch
```
Any queries must be asked at [email protected]