Giter Club home page Giter Club logo

greppo-demo's Introduction

greppo-demo

A repository of demo apps built using Greppo.


Quickstart

  1. Install greppo using:
pip install greppo

Note: It is recommended to install greppo inside a python environment.

  1. Go inside one of the demo apps folders in this repository and run the command:
greppo serve app.py
  1. Follow the link for the webserver.

Deployment Quickstart (Docker)

Build Image

Configure the container's image using the example Dockerfile provided.

Change line 6 in the Dockerfile: COPY /{folder-name} . with the {folder-name} to the source folder, or the demo folder of choice. In the example in the Dockerfile we use the vectore-demo.

## build image
docker build --tag greppo-vector-demo .
## list docker images
docker images

Run docker image locally

## start docker image, use the --publish option to expose the port (one the app running within the container uses: 8080) to the outside (5000).
## Check the app locally at http://0.0.0.0:5000

docker run --publish 5000:8080 greppo-vector-demo

Setup docker hub and push the image

docker login
## setup tag with repo, replace with username and image name
## you need to tag the image to be pushed, here we use the tag of greppo-vector-demo
docker tag greppo-vector-demo <docker_hub_username>/<image-name>
## push to repo, replace username and image name.
docker push <docker_hub_username>/<image-name>

Deploying container

greppo-demo's People

Contributors

krish-adi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

greppo-demo's Issues

GreppoAppProxy object has no attribute 'display'

Hi I installed the virtual environment and iniated the server with sample app.py code. using the below command "greppo serve app.py"
The server started, but while loading on the web page, i got the above error in the cmd window.

I am using windows. Can you please help here
I installed Fiona 1-8.21 and GDAL 3.4.1 (64 bit python)

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.