Skip to content

webmakaka/Build-a-Real-Time-web-app-in-node.js-Angular.js-mongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Udemy] Build a Real Time web app in node.js, Angular.js, mongoDB


I'm working on Ubuntu in docker container with debian jessie:

$ lsb_release -a
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.5 LTS
Release:	14.04
Codename:	trusty

$ docker -v
Docker version 1.9.1, build a34a1d5

How to run docker container for start development (If link will not work give me to know about it)


# node -v
v6.8.1

# npm -v
3.10.8

Run Application:

$ git clone application_name
$ npm install
$ npm start

http://localhost:3000/login

username: batman  
password: abc123  

Application


If you will receive error:

Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson: Failed to load c++ bson extension, using pure JS version

Solution:

http://stackoverflow.com/questions/28651028/cannot-find-module-build-release-bson-code-module-not-found-js-bson


Original src:
https://github.com/arashdoescode/userStory


Server side

4_-_Start_your_first_project

npm install --save express
npm install --save body-parser
npm install --save morgan

nodemon server.js

5_-_Setting_up

6_-_Your_first_Hello_World

http://localhost:3000/

7_-_Create_a_database

https://mongolab.com

npm install --save mongoose

8_-Your_first_Schema-_Creating_User_Schema

9_-_Password_hashing

npm install --save bcrypt-nodejs

10_-_Create_a_custom_method

11_-Your_first_API-_Signup_API

postman

POST -> localhost:3000/api/signup

x-www-form-urlencoded

name: Bruce
username: batman
password: abc123

12_-_Get_all_users_API

http://localhost:3000/api/users

13_-_Login_API

npm install --save jsonwebtoken

postman

POST -> localhost:3000/api/login

x-www-form-urlencoded

username: batman
password: abc123

14_-_Create_a_custom_middleware (code not tested)

15_-_Test_the_middleware

postman

POST -> localhost:3000/api/login

x-www-form-urlencoded

username: batman
password: abc123

Headers

GET -> localhost:3000/api/

URL Parameter Key: x-access-token Value: token

16_-Your_second_Schema-_Creating_Story_Schema (code not tested)

17_-_Post_method_in_Home_API

postman

GET -> localhost:3000/api/users POST -> localhost:3000/api/login

__

POST -> localhost:3000/api/ URL Parameter Key: x-access-token Value: token

x-www-form-urlencoded

key: content value: Hello this is my first post!

__

GET -> localhost:3000/api/ URL Parameter Key: x-access-token Value: token

18_-_Decoded_user_s_information (code not tested)


Frontend

19_-_Setup_the_front-end_files

20_-First_Angular_Service_part_1-_Creating_Auth_Factory (code not tested)

21_-First_Angular_Service_part_2-_Creating_AuthToken_Factory (code not tested)

22_-First_Angular_Service_part_3-_Creating_AuthInterceptor_Factory (code not tested)

23_-First_Angular_Controller-_Creating_Main_Controller_for_Login_and_Logout (code not tested)

24_-_Routing_System

http://cdnjs.com/libraries/angular.js/

http://localhost

25_-_Login_Html

26_-_Signup_Frontend (Code not working! That's ok)

27_-_Testing_Login_and_Logout

http://localhost:3000/login

username: batman
password: abc123

28_-_Fix_sIgnup_bugs

29_-Creating_Story_service_and_controller_part_1

30_-Creating_Story_service_and_controller_part_2

31_-_Adding_real-time_capability

npm install --save socket.io

32_-_Getting_All_Stories

http://localhost:3000/allStories

33_-Creating_a_new_directive-_reverse.js

http://localhost:3000
http://localhost:3000/allStories

34_-_Deploy_our_app_to_heroku

============================================

Application




Marley

Any questions in english: Telegram Chat
Любые вопросы на русском: Телеграм чат

About

[udemy] Build a Real Time web app in node.js , Angular.js, mongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published