https://github.com/jglchen/chirper-laravel-next
Laravel Chirper API Token Auth Backend with Next.js Frontend
https://github.com/jglchen/chirper-laravel-next
authentication chirp laravel nextjs php reactjs typescript
Last synced: 2 months ago
JSON representation
Laravel Chirper API Token Auth Backend with Next.js Frontend
- Host: GitHub
- URL: https://github.com/jglchen/chirper-laravel-next
- Owner: jglchen
- License: mit
- Created: 2023-09-23T01:23:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-02T12:33:13.000Z (over 1 year ago)
- Last Synced: 2025-01-20T16:25:35.849Z (4 months ago)
- Topics: authentication, chirp, laravel, nextjs, php, reactjs, typescript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Laravel Chirper API Token Auth Backend with Next.js Frontend
[The Laravel Bootcamp](https://bootcamp.laravel.com/) demonstrates three different ways to build a microblogging platform called Chirper, [with Blade](https://bootcamp.laravel.com/blade/installation), [with Livewire](https://bootcamp.laravel.com/livewire/installation), and [with JavaScript and Inertia](https://bootcamp.laravel.com/inertia/installation).
This project is trying to use Laravel Chirper API as the backend and set up web display and authentication with Next.js as the browser frontend.
The Laravel Chirper API includes Laravel Breeze API, a minimal, simple implementation of all of Laravel's authentication features, including login, registration, password reset, email verification, and password confirmation. Sanctum is a simple package you can use to issue API tokens to your users without the complication of OAuth. When making requests using API tokens, the token should be included in the Authorization header as a Bearer token.This project basically follows the ideas of demonstrations in the Laravel Bootcamp, 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.### Docker:
```
# Run the following two commands simutaneously with diffrent screen windows...docker run -it -p 8000:8000 jglchen/chirper-api-token php artisan serve --host=0.0.0.0
docker run -p 3000:3000 jglchen/chirper-next-token
```### Docker Compose:
```
# At the root of the /chirper-laravel-next folder...
docker compose up
```
### [App GitHub](https://github.com/jglchen/chirper-laravel-next)