An open API service indexing awesome lists of open source software.

https://github.com/migueldcdev/login-app

A Next.js application featuring JWT authentication for secure user login and session management.
https://github.com/migueldcdev/login-app

ci-cd github-actions nextjs playwright react-testing-library tailwindcss typescript vitest

Last synced: 5 months ago
JSON representation

A Next.js application featuring JWT authentication for secure user login and session management.

Awesome Lists containing this project

README

          

## Login app

This is a Next.js app with a Login, Sign up, Home and Error page. The user can create a profile or login with the proper credentials, the backend issues a JWT Session Token to persist the session. All user data is mocked.

For test the app the user email: *user@mail.com* and user password: _user_

### Installation

First, install the project dependencies:

```bash
npm install
```

### Development

To start the development server and begin working on your project, run:

```bash
npm run dev
```

### Testing

To run the test suite and ensure everything is functioning correctly, use:

```bash
npm run test
```

To run playwright:

```bash
npx playwright test
```

To run playwright in a specific browser:

```bash
npx playwright test --project=chromium
```

To run playwiright in UI mode:

```bash
npx playwright test --ui
```

### Code formatting

To format your code using Prettier, execute:

```bash
npx prettier . --write
```