DEV Community

Cover image for How to create a new project or an app in Nestjs?
MELVIN GEORGE
MELVIN GEORGE

Posted on • Originally published at melvingeorge.me

How to create a new project or an app in Nestjs?

Originally posted here!

To create a new project in Nestjs, you can use the Nestjs CLI command called nest followed by the keyword new then the name of the project you need to use.

For example, let's say we need to make a project called todo in Nestjs, so we can use the nest command like this,

# Create a new Nestjs
# project called `todo`
nest new todo
Enter fullscreen mode Exit fullscreen mode

Note: To know more about installing the Nestjs CLI see the blog on How to install Nestjs CLI?.

After executing the above command you can see that a directory called the todo is created and inside the directory, you can find the default boilerplate files and folders required for the Nestjs app to run.

See the default Nestjs app live on codesandbox.

That's all πŸ˜ƒ!

Feel free to share if you found this useful πŸ˜ƒ.


Top comments (1)

Collapse
 
stanislau profile image
Stanislau Shliakhtsich

npx @nestjs/cli new project-name