This is my repository of tracking my node.js Learning process. this will include my day to day process with node.js by refer the O'Reilly - Getting Started with Node.js course.
started with creating a node server using http
module and used fs
to serve the static content.
Refactoring the server.js
code and created another server by using express.js
framework.
Understanding the version control for the npm modules
and adding necessary files to .gitignore
file. understanding the use of npm
. installed live-server
package as a tool. understanding the installation and uninstallation of the npm packages used as globally and locally.(-g
switch and --save
switch).
revised the previous day sessions and created the script again without get help.
started to learn about npm commands,
- npm star
- npm run
<script>
- npm search
<keyword>
- npm ls --depth=
<0/1>
- npm help
<command>
- npm docs
<package name>
- npm repo
<package name>
- npm view
<package name>
versions - npm install
<package name>@<version>
--save - npm login
- npm stars
- npm update
<package name>
the final episode of the course is covered some environment setup with webstrom editor for node development.
this course will continue with Node.js Web Apps with Express
to create a chat application using node.js
.
started to working on the chat application creation using express.js
. created the server and installed bootstrap. Added the index.html
and custom css file to the application.
Created the pages with jade view engine
and understand the jade engine syntax. passed the json data to the view.
Worked with C.R.U.D Operations without database (used array of data) and those data are published to the view.
Start with Refactoring of app.js
file and route is chained by using express.route
. Learn about the middleware and how to write custom middleware using express.js
.
started to build api
to serve data to front-end modules. done the C.R.U.D
operations to the user messages, expect update.
Learned about logging for the application by using morgon
. used express-debug
package for display the debugging information during the development. Added the application run settings to get debug log with DEBUG=express:*
command.
used NODE_ENV=production
to not display the stack trace errors. Created some errors and handled with some methods to protect the application. Final chapter with login authentication using passport
.
installed passport
and passport-local
packages to do local authentication. understand the flow of authentication. completed the login process.
Added the logout option and passed some more information with messages. restricted access for admin modules. added the few lines of code for development environment. course is completed. 😄