Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koladev32/django-nextjs-auth
https://github.com/koladev32/django-nextjs-auth
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/koladev32/django-nextjs-auth
- Owner: koladev32
- Created: 2024-01-31T04:23:04.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-14T13:07:27.000Z (6 months ago)
- Last Synced: 2024-06-14T14:33:00.740Z (6 months ago)
- Language: TypeScript
- Size: 160 KB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django & Next.js Authentication fullstack application
This is an application built with Next.js and Django to showcase how to build a protected application with authentication features such as registration, login, reset password, and session handling on the front-end.
You can find an implementation of this application with Redux added. It can be useful for starting a project with Redux Toolkit and Next.js.☺️
## Stack used
- Django and DRF for the backend
- Next.js and Tailwind on the frontend
- Wretch for API calls
- Djoser for authentication## Setup
### With Docker
```shell
docker compose up -d --build
```By default, the Django backend will be running on localhost:8000 and the frontend on localhost:3000.
## Manual setup
```bash
git clone https://github.com/koladev32/django-nextjs-auth.git && cd django-nextjs-auth
```Run the `setup.sh` script to handle dependencies installation on the backend and the frontend.
```shell
chmod +x setup.sh
./setup.sh
```To start the application, run the following commands.
```bash
source venv/bin/activate
python manage.py runserver
```The commands above will start the backend application. To start the frontend, run the following commands.
```bash
cd frontend
npm run dev
```Made with ❤️