Skip to content

tibo-pdn/iluvcoffee

Repository files navigation

Nest Logo

ILuvCoffee

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.

Description

Nest framework TypeScript starter repository.

Configuration

For the purpose of this course, we will be using the following tools:

//: # (Put here the global configuration (macOS, WebStorm, etc.)

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

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.

Commands

Here is the list of all the commands used in the course:

01. Setting up NestJS CLI

# 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

02. Creating Nest Application

# 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

03. Configuring Git

# 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

04. Creating a remote GitHub Repository

# 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

05. Running the project in development mode

# Running the project in development mode - allow hot reload
npm run start:dev

06. Running the database

# Running the project in Docker
docker compose up -d

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published