Skip to content

Repository files navigation

node-course

create .gitignore file to prevent node_modules file from being added to gitup. When repo is cloned, we can just use npm i to install needed dependencies.

Using nodemone to watch for changes in the file stystem and restart node app autmatically.

.env file

_filename: This variable provides the absolute path of the currently executing file. It is useful for tasks that require knowledge of the file's location, such as logging, creating file paths, and referencing files relative to the current module.

_dirname: This variable provides the absolute path of the directory that contains the currently executing file. It is helpful for tasks that involve reading or writing files relative to the current module's directory, constructing file paths, and organizing your code based on the directory structure.

Middleware are functions that have access to the request/response objects. Can perform any code, make changes to the request/response objects

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages