GithubHelp home page GithubHelp logo

nattesharan / grcp-client-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7 KB

This application demonstrates the basic client server model writing microservices using GRCP

Python 93.24% HTML 6.76%

grcp-client-server's Introduction

GRCP Client Server Model

This application demonstrates the basic client server model writing microservices using GRCP

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

* Python3.6 (or) Docker-compose

Installing

A step by step series of examples that tell you how to get the project up and running

Using Python

  • Create a virtual environment using virtualenv name

  • Navigate to the client dir and then do pip install -r requirements.txt . This should get all the client requirements installed

  • Next Navigate to server dir and then do pip install -r requirements.txt . This should get all the server requirements installed

  • Start the client

Before starting the client make sure you export the cloudinary url

export CLOUDINARY_URL=cloudinary://663314969728525:yENrtmlHycsoRVV9PC_1jl5sDZw@shara
cd client
python app.py
(or)
python wsgi.py
(or)
gunicorn --bind 0.0.0.0:5000 wsgi:app
  • Start the server
cd server
python main.py

Using Docker

  • Make sure docker-compose is installed

  • Just from the root directory run

docker-compose -f local.yml up  # for starting the entire stack
docker-compose -f local.yml down # for bringing down the entire stack
docker-compose -f local.yml build # for building the stack

Navigate to localhost:3000 and you can find the flask service running

grcp-client-server's People

Contributors

nattesharan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.