Athentication Nodejs
Athentication Nodejs
- [Quick Links](#quick-links)
- [What You Need](#what-you-need)
- [Key Features](#key-features)
- [Project Layout](#project-layout)
- [Prerequisites](#prerequisites)
- [Installation and Setup](#installation-and-setup)
- [Using the App](#using-the-app)
- [API Routes - Protected](#api-routes---protected)
- [Credentials](#credentials)
- [`MySQL`](https://www.mysql.com/)
- [`Docker`](https://www.docker.com/)
- [`OpenAPI 3.0`](https://swagger.io/specification/)
- `Node.js`
- `IDE`
- `Docker`
- `MySQL`
## :clipboard: Prerequisites
To start a new Node.js project, you can use the `npm init` command. The `-y` flag
will automatically fill in the default information in the setup process.
```console
npm init -y
```
```console
cd Auth-Tutorial-Lab02
```
```console
npm install
```
```console
npm start
```
## :key: Credentials
The project uses basic authentication to protect the `/protected` route. When
making a HTTP request to this route, you need to include these credentials in the
`Authorization` header of the request. The format is `Authorization`: