https://github.com/jglchen/chirper-next-jwt
Laravel Chirper API JWT Auth with Next.js Frontend
https://github.com/jglchen/chirper-next-jwt
chirp docker jwt-authentication nextjs nodejs reactjs typescript
Last synced: 2 months ago
JSON representation
Laravel Chirper API JWT Auth with Next.js Frontend
- Host: GitHub
- URL: https://github.com/jglchen/chirper-next-jwt
- Owner: jglchen
- Created: 2023-09-26T08:13:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-31T07:34:03.000Z (over 2 years ago)
- Last Synced: 2025-03-13T20:44:31.833Z (over 1 year ago)
- Topics: chirp, docker, jwt-authentication, nextjs, nodejs, reactjs, typescript
- Language: TypeScript
- Homepage:
- Size: 142 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Chirper API JWT Auth with Next.js Frontend
There are different types of API authentication systems available in the Laravel application, Like Laravel passport, Laravel sanctum and of course, you can also use JWT authentication. In this JSON Web Token Authentication for Laravel 10 tutorial, we will use JWT to create this API authentication in Laravel.
This project is trying to **use Laravel JWT API as the backend and set up authentication with Next.js as the browser frontend**. JWT API is incorporated to provide the authentication system.
When making requests using API tokens, the token should be included in the Authorization header as a Bearer token.
The Next.js React front pages are styled with Tailwind CSS to follow Laravel Breeze's default view designs.
This project basically follows the ideas of demonstrations in [the Laravel Bootcamp](https://bootcamp.laravel.com/), and some additional features as below are added:
- Chirper displays are loaded with scrolling pagination.
- Periodically update the Chirper display following the page is loaded.
- Mechanisms for users to follow and unfollow other users.
- The Laravel Bootcamp demonstrations provide a mechanism to send email notifications when a new Chirp is created to every other user, in this project we restrict the email notifications to the user's followers only.