Giter VIP home page Giter VIP logo

website-old's Introduction

Slack Status

Website

Website code for dgraph.io. The best way to run this would be inside a docker container.

Installation

  1. Install docker from here

For OS X this would mean installing the Docker toolbox and running a docker machine.

  1. Modify Nginx configuration - Once you have docker running, you need to modify the http block in nginx/nginx.conf to
http {
  include mime.types;

  server {
    server_name 127.0.0.1;
    location / {
      root /data;
    }
    location /query {
      proxy_pass http://dgraph.io;
    }
  }
}

This would make sure all your queries are reverse proxied to http://dgraph.io and your assets are served from within the data directory. Don't modify the events key in this file.

  1. Run nginx via:
docker run -p 81:80 -v $SOURCE_DIR/website/app:/data -v $SOURCE_DIR/website/nginx:/etc/nginx -i -t nginx

where $SOURCE_DIR is the path to source directory where this repository is cloned. This command would mount /app and /nginx from your machine to relevant volume inside the container. It also maps port 81 of your machine to port 80 within the container.

Now the website should be visible on localhost:81 for linux machines or $IP/81 where $IP is the IP address of the docker machine on Mac.

website-old's People

Contributors

ashwin95r avatar jondubois avatar manishrjain avatar paulftw avatar pawanrawal avatar waywardmonkeys avatar

Stargazers

 avatar  avatar

Watchers

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

website-old's Issues

Where is the configuration file to set server and port information

Greetings,

I have set up the Dgraph cluster for testing as well as have loaded the benchmark data for the film/movie/actor series. I have also set up the "website" web server code which seems to serve well,

what I need to locate is where is the configuration file in the "website" repository to set up the server IP and port to call the Dgraph cluster?

Any help would be greatly appreciated.

Cheers,
Lonnie

Why is 'website' so dependent upon googleapis.com?

Hello,

I am searching for the configuration files for 'website' app so that I can get it talking to my dgraph cluster, but looking though all of the files, I cannot find the parameters, but did notice some query functions that seem to be dependent upon calls to googleapis.com and I do not see the reason for this.

Can some one please clarify what is happening here and why?

Thanks,
Lonnie

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.