Join Alexander Zanfir for an in-depth discussion in this video Create a post endpoint with Express, part of MEAN Stack and MongoDB: Development Techniques.
- [Voiceover] In this video, we will be creating…a service endpoint in our messaging API…with express and node.…But first we need to create a back end folder…in our main project folder.…Let's go ahead and do that now.…So beside my front end, I'll create a new folder…called back end.…Now let's open up a new command prompt window…and head over to that directory.…So I'll copy this, and I'll paste in the directory.…Because we didn't have a generator to create all the files…as we did inside our front end, we're going to have…to do that manually, but we can use a helper function…from npm called npm init, and that will create…the package.json file for us.…
The package file will keep track of our dependencies…and will eventually allow us to deploy.…So let's go ahead and run through the set up…and the questions that it asks us.…So I'll call it my-message-backend,…and I'll leave many of the defaults the same.…And then I'll press y to create the file.…Once it's set up, we can continue by installing express…since it's the first thing we need.…
- Installing and setting up your MEAN toolset
- Making an Angular post form
- Sending posts
- Displaying messages
- Creating a registration form
- Saving users
- Associating users with posts
- Authenticating users at login
Skill Level Intermediate
2. Message Posting
3. Display Messages
Save a user with Mongo13m 26s
5. Logging In
Next steps2m 5s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.