Creating a New Project

In this lesson, we'll create a new project for the next set of topics that we'll be learning.

We'll cover the following

It’s time to start a new project! The goal of this project is to create an application with authentication. Users play a huge role in almost any application you’ll encounter. Before a user can do anything, they need to be authenticated into the system. The responsibility of authentication is shared between the server and client.

We’ll explore how authentication is done on the client-side as well as explore other things related to authentication.

Creating a new project

If you’re running code locally, then you’ll need to run the following command:

ng new auth

During the setup process, the CLI will ask you to configure the project. We are going to add routing because we’ll be learning how to restrict pages based on authentication status.

Installing Bootstrap

After installing the project, navigate to the newly created directory, and install Bootstrap. We’ll be using it to help us with styles. You can run the following command to install Bootstrap:

npm i bootstrap

We’ll need to update the styles.css file to import Bootstrap.

@import "bootstrap/dist/css/bootstrap.css"

We’re done! Here’s the codebase we’ll be using for this project:

Get hands-on with 1200+ tech skills courses.