Giter Site home page Giter Site logo

meanstacktutorial's Introduction

MEAN Stack RESTful API Tutorial - Contact List App

MEAN Stack RESTful API Tutorial - Contact List App

mean stack tutorial app

This repo contains the code for a RESTful API Contact List App that was built using the MEAN stack:

  • MongoDB
  • Express
  • AngularJS
  • NodeJS

YouTube Tutorial

Here is the 5-part YouTube tutorial for this MEAN stack app:

Instructions

If you have trouble with the tutorial (especially since I had to modify the code due to an AngularJS update), simply clone this repo using

git clone [email protected]:michaelcheng429/meanstacktutorial.git

then install the Node modules with

npm install

then make sure MongoDB is running with

mongod

from your MongoDB directory, and then run the code with

node server

You might see a message that says,

Error: Module did not self-register.]
js-bson: Failed to load c++ bson extension, using pure JS version

Don't worry about this; the code will still work.

Have fun!

If you have any questions, feel free to leave a comment and I will try to help if I can!

meanstacktutorial's People

Contributors

michaelcheng924 avatar

Stargazers

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

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

meanstacktutorial's Issues

Odd Issue with ObjectID in mongodb with this app

Hi, on going through this tutorial i noticed i was unable to edit or remove records using the form.
I noticed that the "_id" in the database stopped outputing as e.g. "5580044347a980ac25c9cb01" and started to display as "_id" : ObjectId("5580048c47a980ac25c9cb04") instead for new records.

Is there a difference between the records inserting via the console and the form? as it seems the data is entered with this ObjectId text.

noticed that this is added in the app.put command on line 48 .. or am I looking at this wrong?

Also in the end i deleted all the manual entries and re-added using the form, this seems to work ok, but I am just thinking if I was to use such a method in future projects this would cause a problem if data was to be entered in different ways.

Thanks.

API endpoints

Hi, I am a Full Stack Developer but I'm still a learner of MEAN. Your tutorial rocks, but I am trying to wrap my head around the concept of API endpoints and how it can be readily accessible through clicking on name, email, or number. Can you address that? Like I'd like to be able to go to a specific param or id through clicks.

not able to get data from controller.js file

untitled
untitled1
untitled2

Hi
please help me out.I m not able to get data from controller.js though the code working fine and also i am able to get message in console of browser but data is not coming on to the view .It may be due to new version and syntax in angularjs .
i think there is some problem in controller.js only

Please help

Adding a new feature to the website

This was a great tutorial and it helped me a lot in my project! I'm creating a web app for donating books and I wanted to add a new feature, leaderboard. Here the users who have donated the most will be displayed in highest to lowest manner. This is the question I posted in stackoverflow. I hope you can give me some solution as I'm new to mean stack.

Server side pagination

How I can use server side pagination? I have tried very hard but no success and there is no code which help you complete server side pagination,sorting and searching using mongodb, nodejs, angularjs.

program won't run

when I try node server or node server.js I get this error:

{ Error: Cannot find module '../build/Release/bson'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/crash/js/node/LCT/node_modules/bson/ext/index.js:15:10)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3) code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
/home/crash/js/node/LCT/node_modules/mongojs/index.js:662
    var p = Proxy.create({
              ^

TypeError: Proxy.create is not a function
    at connect (/home/crash/js/node/LCT/node_modules/mongojs/index.js:662:19)
    at Object.<anonymous> (/home/crash/js/node/LCT/server.js:6:10)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:160:18)
    at node.js:456:3

Error: Access to restricted URI denied

Hi, thanks for the tutorial. You have done a great job. I just followed your tutorial successfully established connection with the mongodb database. But I am stuck with the error mentioned above. Please help me out of this. Thanks.

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.