- express (Use to create node-web-server such as restful-api,webapplication)
- hbs (Handlebar template engine for create view web-application like php,python,ruby)
- mocha (For use write test-case list)
- expect (For use Assertion test)
- supertest (For use Assertion test with promise or create restful api test)
- rewire (For use spies for coppy function or process fake not sending, use with expect package to create spy)
- mongoose (Mongodb ORM use to create model,schema and validation)
- install mongodb
- unpack and moving in to directory user
- create mongo-data folder
- cd to /bin and use command
./mongod --dbpath ~mongo-data
- run mongo success!
- robomongo (desktop application for gui mongodb structure like phpmyadmin)
- structure model mongodb database for add method,validation
(For Fist-time)
ssh-keygen -t rsa -b 4096 -C "[email protected]"
cat ~/.ssh/id_rsa.pub
(Use)
- create respo
git init
git commit -am 'Initial Commit'
git remote <git:url>
git push origin master
(Setup)
- install heroku and
- create account
- open terminal use command 'heroku login'
- add ssh to heroku use
heroku keys:add
andssh -v [email protected]
- setup success!
(Use)
- go to directory
- create heroku use command
heroku create
Case have credit card
- for use addons(like mongolab)
heroku addons:create mongolab:sandbox
Case Not have credit card
- use mLab login or signup
- create new database
- create user for use database
- database ready to go!
- push heroku to server
git push heroku
- view web-page to input
heroku open
- success!
- validator package for validation
- jsonwebtoken package for cyrpto use JSON WEB TOKEN method by SHA256(JSON.stringify(data+salt)).toString()