This is the repository of the Official NestJS Fundamentals Course - ILuvCoffee
This repository is only for testing and learning purposes. Nothing is deployed and the access/keys/passwords you can see in the code are not valid.
Nest framework TypeScript starter repository.
For the purpose of this course, we will be using the following tools:
//: # (Put here the global configuration (macOS, WebStorm, etc.)
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Here is the list of all the commands used in the course:
# Checking NodeJS version
node --version
# output > 21.5.0
# Installing NestJS CLI
npm i -g @nestjs/cli
# Checking NestJS CLI version
nest --version
# output > 10.2.1
# Displaying NestJS CLI help and shortcuts
nest --help
# Creating a new NestJS project
nest new
# input > iluvcoffee
# input > npm
# Entering the project directory
cd iluvcoffee
# Running the project in production mode
npm run start
# Checking Git version
git --version
# output > 2.42.0
# Installing GitHub CLI package
brew install gh
# Checking GitHub CLI version
gh --version
# output > 2.42.1
# Authenticating GitHub CLI
gh auth login
# input > GitHub.com
# input > SSH
# input > your_path_to_ssh_key
# input > title_of_your_ssh_key
# input > Login with a web browser
# output > ✓ Logged in as your_github_username
# Creating a new GitHub repository
gh repo create
# input > Push an existing local repository to GitHub
# input > .
# input > iluvcoffee
# input > your_github_username
# input > your_description
# input > Private
# input > Y
# input > origin
# output: ✓ Added remote [email protected]:your_github_username/iluvcoffee.git
# Switching to the main branch
git checkout -b main
# output > On branch main
# Adding all the changes
git add .
# Committing the changes
git commit -m "config(repo): add repo structure and Git initialization"
# Pushing the main branch to GitHub
git push origin main
# Running the project in development mode - allow hot reload
npm run start:dev
# Running the project in Docker
docker compose up -d
Nest is MIT licensed.