Giter VIP home page Giter VIP logo

simple-node-connect-drill's Introduction

Simple Node Connect Drill

To practice connecting a front end angular application to a node backend.

The connections have been , we now just have to put in the logic inside the functions to pass the information along.

server.js changes

  1. We need to server the public folder from our server file.

  2. We want to use sessions to store the screenname, so we are going to to Initialize express-session

  3. Write the function to save the screenname to the session in the /api/screenname endpoint

chatCtrl.js changes

  1. Write the function that will accept a request and get the chats

  2. Write the function that will accept a request and post a new chat

  3. Write the function that will accept a request and delete all the chats

mainSrvc.js changes

  1. Make a GET $http call to the "/api/chats" endpoint.

  2. Make a POST $http call to the "/api/chats" endpoint.

  3. Make a DELETE $http call to the "/api/chats" endpoint.

mainCtrl.js Changes

  1. Call the mainSrvc's getChats method to get the chat messages

  2. Call the mainSrvc's addChats method to add a new chat message

  3. Call the mainSrvc's deleteChats method to delete the chat messages

simple-node-connect-drill's People

Contributors

brackcarmony avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.