Skip to content

Trying out two new techniques graphql and ecmascript 6

Notifications You must be signed in to change notification settings

ParAnton/graphql_ec6_test

Repository files navigation

 ,-----.,--.                  ,--. ,---.   ,--.,------.  ,------.
'  .--./|  | ,---. ,--.,--. ,-|  || o   \  |  ||  .-.  \ |  .---'
|  |    |  || .-. ||  ||  |' .-. |`..'  |  |  ||  |  \  :|  `--, 
'  '--'\|  |' '-' ''  ''  '\ `-' | .'  /   |  ||  '--'  /|  `---.
 `-----'`--' `---'  `----'  `---'  `--'    `--'`-------' `------'
----------------------------------------------------------------- 

Welcome to your Node.js project on Cloud9 IDE!

Running the graphql server

$ run npm install
  1. Open grapqlh_starter.js and start the app by clicking on the "Run" button in the top menu.

  2. Alternatively you can launch the app from the Terminal:

    $ node grapqlh_starter.js

Once the server is running, open the project in the shape of 'https://grapqhl-ec6-test-paranton.c9users.io/hej'. Now you should see Helg! in the browser

This chat example showcases how to use socket.io with a static express server.

Running the server

  1. Open server.js and start the app by clicking on the "Run" button in the top menu.

  2. Alternatively you can launch the app from the Terminal:

    $ node server.js

Once the server is running, open the project in the shape of 'https://projectname-username.c9.io/'. As you enter your name, watch the Users list (on the left) update. Once you press Enter or Send, the message is shared with all connected clients.

About

Trying out two new techniques graphql and ecmascript 6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published