(4/5) RESTful API, GET and POST Data - MEAN Stack Tutorial, Part 4

Firecode · 106K views · 2015 · 18:28

Open on YouTube

Web developmentPython, Ruby & scripting languagestutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they followed to wire Express, MongoDB and AngularJS together, usually when reporting errors from reproducing its steps.

Recommended by 1 people across 1 different months, 2015 to 2017.

What it is

Part four of a MEAN stack tutorial series by Firecode. The presenter builds a RESTful API with Node.js, Express and MongoDB, and shows an AngularJS front end reading and posting data through GET and POST requests. Source code is on GitHub.

What people said

Recommends nickg · 2015-09 · Stack Overflow · on “Using HTML views in Express rather than Jade”

Hi DevAlien. Thanks for answering. I was planning to use Express to grab all the variables from Mongo, and then parse them into JSON and send them to Angular. This guy here has a pretty cool tutorial on getting set up: [this video]

Cites user3070246 · 2015-11 · Stack Overflow · on “Error install mongojs nodejs”

Actually i'm trying to do like this : [this video] I did all steps the same but getting errors . I couldn't get the data from mangodb .

Cites Mohammed Gadiwala · 2016-02 · Stack Overflow · on “Why user ids not printing in angular js?”

I followed the tutorial [this video] I wrote this code: <!-- Meetups View --> <div ng-controller="mycontrl"> <label for="singleSelect"> Select Date </label><br> <select nAMe="singleSelect" ng-model="dateSelect"> <option value="2/01/2015">2nd Jan</option> <option value="3/01/2015">3rd Jan</option> </select><br> singleSelect = {{dateSelect}} <br/><br/><br/> <label for="singleSelect"> Select time </label><br> <select nAMe="singleSelect" ng-model="timeSelect"> <option value="9/10">9AM-10AM</option> <option value="10/11">10AM-11AM</option> <option value="11/12">11AM-12PM</option> <option value="12/13">12PM-1PM</option> <option value="13/14">1PM-2PM</option> </select> <button ng-click="check()">Check!<

Cites Cristian Muscalu · 2017-01 · Stack Overflow · on “Angular TypeError: Cannot create property on string ''”

Trying to clear the input box after Add is clicked, like the guy is doing in this tutorial [this video] . I have recreated the error without using the API, with this short code. You can also check out the Plunker [LINK] . HTML <input ng-model="contact.name" type="text"> <button ng-click="Add()">Add</button> <ul ng-repeat="contact in contactList"> <li>{{ contact.name }}</li> </ul> JS $scope.contactList = [ {name: 'cris'}, {name: 'vlad'} ;] $scope.Add = function() { $scope.contactList.push($scope.contact) $scope.contact = "" } It seems that i can add 1 item, but on the second i get this Error: [LINK]