Skip to content

IvanQin/webblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

webblog

My personal web blog

run test

  • npm run test (run scripts defined in package.json)
  • run test configuration in WebStorm (cannot use babel-core/register, do not know why)

fix bugs

  • unique field in mongodb : restart mongod (unstable? do not know why...)

comments

  • promise/ async await
  • Marked A markdown parser and compiler. Built for speed.
  • Mongoose type Types reference in mongoose.
  • CommonJS vs ES6: (module.exports,exports,require) vs (export,export default,import)
  • Using ES6 in Express: Tutorial (npm install --save-dev babel-cli)
  • MapReduce on mongoose. Implement map``reduce functions. See tutorial1 tutorial2
  • Mongoose operation

problems encountered

  • If you think the router is not updated, restart the server !db

Issue

  • The cross-domain cookie cannot be set. See 1 See 2
  • How to create session in mongodb tutor
  • How to use html files instead of 'jade' in Node.js express some discussion

TODO

  • how to output log on the server side.
  • establish mongodb on the server.
  • install node on the server.
  • deploy html on the node.

About deployment

  • yum install -y, -y means choose 'yes' all the time.
  • Yum install mongodb How to install mongodb in RedHat.
  • use ctrl-A + ctrl-D to exit the screen in linux.

About

The backend server of web blog based on Node.js Express.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published