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
username: batman
password: abc123
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:
Original src:
https://github.com/arashdoescode/userStory
npm install --save express
npm install --save body-parser
npm install --save morgan
nodemon server.js
npm install --save mongoose
npm install --save bcrypt-nodejs
postman
POST -> localhost:3000/api/signup
x-www-form-urlencoded
name: Bruce
username: batman
password: abc123
http://localhost:3000/api/users
npm install --save jsonwebtoken
postman
POST -> localhost:3000/api/login
x-www-form-urlencoded
username: batman
password: abc123
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
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
http://cdnjs.com/libraries/angular.js/
username: batman
password: abc123
npm install --save socket.io
http://localhost:3000/allStories
http://localhost:3000
http://localhost:3000/allStories
============================================
Marley
Any questions in english: Telegram Chat
Любые вопросы на русском: Телеграм чат